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

nrf51822 UART Problem

Hello all,

I am new to nRF platfrom, I am working on a protect which contains multiple BMD-200 modules with nRF51822 controller. It has to transfer some data via UART, I started of using example code and writing the values to it. But when i try to transfer the data it is not showing any data across the serial monitor. I am attaching my code , which is almost same as that of example code with modification.
main.c

  • Your code works fine for me when I test it on an nRF51 DK development kit. It prints out "-D-ZNV".9W MMMMM" in an endless loop. Have you double checked that you are using the correct pins? And that your serial terminal is configured to use the correct settings (flow control, stop bit, baud rate, etc)?

  • Yes, I am using pin number 11 for RX and Pin number 9 for TX. I have set all the settings across serial terminal also. I am sending it as an integer value. But for BMD 200 pin number 9 is used as RX and pin number 10 is used as TX according to the data sheet of BMD 200. Even for same configurations as that of development kit/BMD 200, it is not transmitting any value. Is there anything I am missing??

  • When you say RX is pin 9 and TX is pin 10 I assume that you are talking about the things mentioned in chapter 6 of the BMD 200 Module datasheet? As you may know it is perfectly fine to use any GPIO for UART communication and pin 9 and 10 was simply what Rigado decided on for whatever reason.

    1. Are you using some sort of UART <-> USB FTDI gadget?
    2. Have you made sure that you have TX on your BMD connected to RX on your peer device and vise versa?
    3. Are you able to run any other applications on your module? Maybe it is broken?
Related