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

Trace function missing from SDK12 logger module?

Hi,

I am porting our application from SDK10 nrf51 to SDK12 nrf52. The application takes use of a serial console accessible over UART.

I notice the new logger module in SDK12 only seems to output to UART/RTT after a debug reset operation and that app_trace.c with it's functions are gone. What is now the recommended way to provide trace functions after a normal pin reset?

many thanks, Olov

  • The new Logger module is a replacement for the older Debug Logger (app_trace). It is a general logging library that allows logging based on different log levels, but you can also print/log out any formatted string regardless of log level using NRF_LOG_RAW_INFO(). There is no dependency of any particular reset mechanism - where did you get that information?

  • OK, thanks. That helped. I couldn't get output on UART/RTT from the buttonless ble_dfu example (on my custom board) until I started a debug session in Keil. nrfjprog --pinreset used to be enough to generate output on nrf51 but now I see that both nrfjprog --debugreset" and "nrfjprog --reset" works for nrf52.

    In other words, it seems like there is a changed behaviour for "nrfjprog --pinreset" between nrf51 and nrf52 which confused me..