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

  • The UART pin mapping in the SDK are mapped to a particular DK as per the project. I am not how the mapping of UART pins are done from your Rigado BMD-300 module onto the custom board. Look into the code of UART initialization in your project and check that the UART pin number matches the UART pin on your board.

  • Thanks,

    I took the uart project as an example. I’m not interested specifically in uart or any other peripherals.

    I just want my message, e.g. printf("Hello world!\r\n"); to be displayed in the Debug (printf) Viewer of the uVision.

  • if you have retarget.c file in your project, you need to remove it, as it is overwriting the functions that printf uses to redirect the logs from standard output to uart.

  • Thanks. I removed it, but this didn't help.

  • Are you running this in simulator mode? if not, printf executing on nrf chip will not show you anything on the Keil console as far as i know.

1 2 3