I am using nrf51 SDK v.12.1. And I found NRF_LOG_INFO("BLINKY START\n"); where can I find this log? Is this different from SEEGER_WriteString or something?
I am using nrf51 SDK v.12.1. And I found NRF_LOG_INFO("BLINKY START\n"); where can I find this log? Is this different from SEEGER_WriteString or something?
The output from NRF_LOG_xxx can be displayed in a terminal (if logging over UART) or in the J-link RTT viewer (logging over RTT).
The sdk_config.h file --> configuration wizard can be used to choose logging over UART or RTT.
As you can see in nrf_log_backend_serial.c, logging over RTT uses SEGGER_RTT_xxx functions.
Update: Use the configuration wizard tab in sdk_config.h to enable RTT and/or UART logging:
Im sorry but I have one more question. If I want to use RTT for debugging, how can configure sdk_config.h. And when I use RTT viewer, it doensn't show the result dynamically (for example, printing some string every second). Does RTT viewer work only when the program is loaded on the board?
Im sorry but I have one more question. If I want to use RTT for debugging, how can configure sdk_config.h. And when I use RTT viewer, it doensn't show the result dynamically (for example, printing some string every second). Does RTT viewer work only when the program is loaded on the board?