NRF52 uart example is not transmitting but receiving

I am using the NRF52 development kit and I modified the uart example main.c to simple TX and RX application using printf function. The board is directly connected to the PC with the USB. I used x3 different serial applications on the PC, which are Putty, TerTerm and RealTerm. All of them are not outputting the TX being sent from the micro using printf. But the Rx being sent from the Putty is being read by the micro.

In building this project I had to remove the retarget.c file cause it was giving me this error "unknown type name __print_tag_ptr" and in the library option I added RTT to Libray I/O. I followed these Thread 1 , Thread 2 and solved the building issue. In Thread 2 says to remove the SEGGER_RTT_Syscalls_SES.c, but I could not find it in the entire solution. 

I do not think it is a hardware issue, nor its the serial application from the PC. But an micro-controller software issue that relates to re targeting of the I/O library. I am also using Segger 6.3v IDE.

This is a link to the application code I am using : uart_code_link

 

 

Parents
  • Hi,

    Not sure if I missed something in your application or case description, but if you have removed retarget.c from your project, I would not expect printf to output anything to UART. retarget.c is the place where printf statements are forwarded to UART using app_uart_put() function, so unless you have implemented this somewhere else, the printf statements will not go anywhere.

    I would highly recommend you to stick with the SES version used for testing/verification of the SDK version you are using, mentioned in the release notes. the STDIO retarget layer should work with the older SES version.

    Best regards,
    Jørgen

Reply
  • Hi,

    Not sure if I missed something in your application or case description, but if you have removed retarget.c from your project, I would not expect printf to output anything to UART. retarget.c is the place where printf statements are forwarded to UART using app_uart_put() function, so unless you have implemented this somewhere else, the printf statements will not go anywhere.

    I would highly recommend you to stick with the SES version used for testing/verification of the SDK version you are using, mentioned in the release notes. the STDIO retarget layer should work with the older SES version.

    Best regards,
    Jørgen

Children
No Data
Related