This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to implement soft uart in Pca10028?

Hello,

I am using pca10028 and sdk 12. I want to use 2 uart for my application but as per datasheet nrf51 has only one hardware uart. Can I implement soft uart on pca10028? I want to use both the uart at the same time so multiplexing will not help me.

Sdk_config.h New Text Document (3).txt

Main.c New Text Document (3).txt

Thanks, Shailav

Parents
  • Hi Shailav,

    I am afraid that we do not have any examples showing how create a software-based("bit-banged") UART for the nRF51 Series. Have you considered using the nRF52840 that has two UARTs?

    Best regards

    Bjørn

  • Hi Bjørn, I was able to set up RTT viewer. When I am writing this SEGGER_RTT_WriteString(0, "Hello World!\n"); I am able to see output in RTT viewer but when I am using the printf function for example SEGGER_RTT_printf(0, "variable value: %d\n", err_code); I am getting error as ._build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol SEGGER_RTT_printf (referred from main.o). What can be the problem? Thanks, Shailav

Reply
  • Hi Bjørn, I was able to set up RTT viewer. When I am writing this SEGGER_RTT_WriteString(0, "Hello World!\n"); I am able to see output in RTT viewer but when I am using the printf function for example SEGGER_RTT_printf(0, "variable value: %d\n", err_code); I am getting error as ._build\nrf51422_xxac.axf: Error: L6218E: Undefined symbol SEGGER_RTT_printf (referred from main.o). What can be the problem? Thanks, Shailav

Children
No Data
Related