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

nRF52840 and others " printf()"

Hey Everyone,

I am new to nordic development. I am really used to programming with easy environments like the Arduino. I have seen some examples using the printf() command.

I am using Keil uVision and can use the debug mode to step through code. But I don't see the printf() results anywhere in uVision. Where do these commands get printed ?

Can I see them using putty and connecting through USB?

Thanks in advance.

Parents Reply
  • Hey

    Just adding the retarget.c file did not have to desired effect. So I thought I had to add more files and initiate uart. I added all the relevant uart files from the uart example (got the example working).

    Overview of what I added: app_uart.c app_uart_fifo.c nrf_drv_uart.c

    I define a comm_params and call the APP_UART_FIFO_INIT function:

    But now I am getting a L6218E undefined symbol error on app_uart_init from main.o

    Quite sure I added the file and also to the linker : ............\components\libraries\uart ............\components\drivers_nrf\uart

    Can you maybe help me, or tell me if just adding retarget.c should have been enough?

    Thanks in advance

Children
No Data
Related