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

uart pin connfiguration

Hi, 

I am using nrf52840 DK to create the uart ble app. The starting point is ble_app_uart example from SDK52 15.3. I changed pin configuration for uart so I can have RX and TX pins on one of the external headers. This is the code in the pca10052.h file (in the comment is the previous value):

#define RX_PIN_NUMBER  12//8
#define TX_PIN_NUMBER  11//6
#define CTS_PIN_NUMBER NRF_GPIO_PIN_MAP(1,8)//7
#define RTS_PIN_NUMBER 7//5
#define HWFC           false//true


One thing I notice is that the application will brake on uart_init when rx and tx pins are not connected to uart dongle. Is there a way to overcome this issue with some software or hardware configuration?

Parents
  • It is probably the UART event handler receiving some communication error. Try to comment out the APP_ERROR_HANDLER() in the uart communication error event, and see if that changes the behavior. 

    The issue is that the UART's RX line is floating, and when the pin floats between 1 and 0 the UART believe that someone has tried to send a message, but it was corrupted.

    Best regards,

    Edvin

Reply
  • It is probably the UART event handler receiving some communication error. Try to comment out the APP_ERROR_HANDLER() in the uart communication error event, and see if that changes the behavior. 

    The issue is that the UART's RX line is floating, and when the pin floats between 1 and 0 the UART believe that someone has tried to send a message, but it was corrupted.

    Best regards,

    Edvin

Children
Related