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

NRF52 Debug Timer

Newbie here hoping to get some direction on how to properly setup a timer to have a timestamp displayed for DEBUG messages. I am working on a PCA10040 board. I tried looking at the Timer example available in the SDK but I'm not sure it's what I want because I am not looking for the timer to give me any interrupts. Currently when I work on my project, the DEBUG messages give me a timestamp of all zeroes, rather than a time in milliseconds from turning on the board, which is what I'm looking for. Currently, the only initialization I do in my program for this is:

err_code = NRF_LOG_INIT(get_system_time_ms);

APP_ERROR_CHECK(err_code);

twi_init();

And then my DEBUG messages appear as seen below. Any help would be appreciated. Thanks![00000000]:DEBUG: MESSAGE [00000000]:DEBUG: MESSAGE2 [00000000]:DEBUG: MESSAGE3 [00000000]:DEBUG: MESSAGE4

[00000000]:DEBUG: MESSAGE5

Related