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

printf output is not displayed during debug

Dear Support,

 I’m working on uVision V5.25.2.0, using nRF5_SDK_15.0.0_a53641a.

My evaluation board is Rigado BMD-300.

Target: nrf52832_xxaa.

 I tried using the printf function while debugging, but its output is not displayed. I tested it in a few simple example projects (like Nordic\nRF5_SDK_15.0.0_a53641a\examples\peripheral\uart\).

 I did many efforts by searching in the Internet and applying different advices, but nothing helped.

 I need using this function to debug the signal processing algorithm. It means that I would be happy to get the simplest project, without uart and other peripherals.

 Thanks in advance,

 Arie Shlitner

Parents Reply
  • After I haven’t found a solution in Google and didn’t receive an answer neither from the ARM nor from the Nordic support, I myself solved the problem, as follows:

    In addition to known configuration, you must configure the TRACECONFIG register in your code:

    		NRF_CLOCK->TRACECONFIG = (CLOCK_TRACECONFIG_TRACEMUX_Parallel << CLOCK_TRACECONFIG_TRACEMUX_Pos) |
    		(CLOCK_TRACECONFIG_TRACEPORTSPEED_32MHz << CLOCK_TRACECONFIG_TRACEPORTSPEED_Pos); 
    Slight smileEnjoy!

Children
No Data
Related