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

nrf52840 reading GPS via UART

Hi, I am trying to connect the nrf52840 to GPS module, and I hope that the dk could read the GPS information via UART. I try to modify from this example nRF5_SDK_14.2.0_17b948a\examples\peripheral\uart, but I open termite and receive nothing.

  1. could any friends offer me some help with my code?
  2. if there is any software could help me debug or test? I am not sure whether the GPS information is successfully received via UART.

Thank you for your help!

Best Regardsmain.c

  • Hi,

    Your code is not doing anything in your main loop. This line:

    while(app_uart_get(&cr) != NRF_SUCCESS);
    

    just waits for an input. Nothing will ever get printed to your termite terminal with this.

    1. Are you using the correct baud rate in Termite?
    2. Have you successfully made the uart example in the SDK work?
  • Hi, Martin, thank you for your reply! I try this example nRF5_SDK_14.2.0_17b948a\examples\peripheral\uart WITHOUT ANY CHANGE, just connect the nrf52840 board to the GPS module. When I load the code and open termite, I could see the GPS information in termite. However, this lasts for 10 seconds and the termite close by itself, may I know the reason? I hope that I could read the GPS information through termite without stop, what shall I do? Thank you very much!

    Best Regards

  • If termite closes it sounds like you have a computer issue. Maybe you can try a different terminal software. Putty is pretty common. Personally i use Tera Term.