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

How to debug nRF52 without RTT?

Hi. I'm quite new to nRF programming. I successfuly solved how to compile/link/flash the software onto nRF52 DK using just a simple editor (Notepad++), the ARM toolchain and makefile.

Now I'm trying to see some logging/debug info. I have found that there are several options:

  • NRF_LOG over RTT
  • NRF_LOG over UART
  • printf

As I understood so far, I need a specialized software and/or hardware for the RTT. Therefore I would prefer the other two.

The questions:

  1. What and where should I configure to enable the NRF_LOG over UART? (NRF_LOG_ENABLE and other sdk_config.h stuff)
  2. What and where should I configure to enable printf logging? (some UART initialization?)
  3. What software tools do I need to capture either the NRF_LOG or printf output? Please recommend som free and/or portable software like e.g. putty.

Please keep in mind that I have only a little experience with such debugging. I'd like to setup a development environment without huge IDEs or specialised hardware.

Thank you.

Parents Reply Children
Related