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

APP_UART_COMMUNICATION_ERROR when interfacing with external MCU

Hi,

I use the peripheral ble_app_uart with nRF52832 (Murata module). The nRF52832 is connected to another MCU, STM32L476, via UART.

P0.5 - RTS

P0.6 - TX

P0.7 - CTS

P0.8 - RX

The connections to the MCU are correct.

I constantly get the APP_UART_COMMUNICATION_ERROR (immediately) when running the application (running on pca10040 eval board doesn't cause the error).

I tried running the STM32L4 MCU and stop it in the beginning of the code right after clock and GPIO initialization, after I release the nRF52832 reset line, 
then I started the debug session of the nRF52832 and the error persisted.
The error code is 4 (BREAK in ERRORSRC register).
If I change the baud rate to 9600 the error code changes to 12.
If I disconnect the UART TX pin of the STM32L4 (connected to P0.8 in the  nRF52832, configured as UART RX) the error doesn't occur.
I must add that my code, at this stage, doesn't send anything on that line, and it is pulled up (I tried without pulling the pin but got the same results).
I use the latest SDK V15.0.0, with IAR v8.22
Any ideas?
Thanks
Related