This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_LOG MACROS to SEGGER_RTT?

Hi, I use PCA10040 v1.1 with Keil MDK 5.20 and SDK 12. I have installed J-Link 5.12f driver.

I usually use the NRF_LOG_ENABLED MACRO to check the UART debug message.

It seems to me that the SEGGER_RTT can be an alternative way to check log messages.

So I was wandering that can the NRF_LOG_INFO MACROS can be changed to SEGGER_RTT_WriteString without searching every MACROS in the application code.

Replace

The "find and replace" the NRF_LOG_INFO MACROS was kind of a troublesome.

So, instead of using "find and replace", can the NRF_LOG_INFO MACROS be replaced to SEGGER_RTT?

// Added 2016.09.06

setting

I used the SPI master example by the way.

I used NRF_LOG_ENABLED and NRF_LOG_BACKEND_SERIAL_USES_RTT as a preprocessor. (Don't know whether this is a correct expression.)

Log result

Or change the values in the sdk_config.h.

Enable

Config

As a result, it works! Thanks, Krzysztof Chruściński and Keton.

-Best Regards, Mango

Parents Reply Children
No Data
Related