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

Couldn't use flow control on 52832

Hi,

I'm using nRF5 SDK v15.0 with S132 v6.0. I have two questions:

1. I use the ble_app_uart example. We want to use high UART baud rate, so I change it to 1M baud rate and  enable flow control(APP_UART_FLOW_CONTROL_DISABLED), it could work and output debug information on PCA10040 board. When I program it to our board, it could advertise, but it couldn't output debug information and the uart couldn't receive and send data any more. I use a USB to serial UART module(FT232RL) to connect our board and I have connect the RTS CTS TX RX GND conrecttly.

2.  I'm using ble_app_multilink_central on PCA10040 board. I add uart_init according to the ble_app_uart example, it could work and I could use print function to output debug information. But when I enable flow control(APP_UART_FLOW_CONTROL_DISABLED), the uart couldn't receive and send data any more.

Could anyone give me some advise? Thanks.

Parents
  • Hi,

    Please confirm whether you observe this problem before or after enabling flow control. You said that you enabled flow control, but APP_UART_FLOW_CONTROL_DISABLED implies that you are disabling it? 

  • Hi,

    I'm sorry. Yes, I have use APP_UART_FLOW_CONTROL_ENABLED to enable flow control. For our board, it's need to enable hardware flow control in the UART terminal on PC when work with the  USB to serial UART module, but it's no need to do it for PCA10040. Now the UART could receive and send less data.

    However, I found a problem. The UART would return an error APP_UART_COMMUNICATION_ERROR in the uart_event_handle function when I use PC to send a document, which is about 20k bytes. If I program the same code to PCA10040, it wouldn't get the error. What reason would be?

Reply
  • Hi,

    I'm sorry. Yes, I have use APP_UART_FLOW_CONTROL_ENABLED to enable flow control. For our board, it's need to enable hardware flow control in the UART terminal on PC when work with the  USB to serial UART module, but it's no need to do it for PCA10040. Now the UART could receive and send less data.

    However, I found a problem. The UART would return an error APP_UART_COMMUNICATION_ERROR in the uart_event_handle function when I use PC to send a document, which is about 20k bytes. If I program the same code to PCA10040, it wouldn't get the error. What reason would be?

Children
Related