Uart not working correctly when net core flashed by hci_rpmsg

Hi,

I am using SES and NCS SDK 1.6.1 under Win10.

A GPS module is connected to NRF5340, using an UARTE to communicate. The pin receiving GPS data is P0.31. 

It works well when net core is not used or flahsed.

Now I want to use BLE together with GPS module. After I flashed the net core with "hci_rpmsg", the BLE started to work but uarte got "NRFX_UARTE_EVT_ERROR" in uarte_event_handler. Uarte cannot receive any data.

I checked my nrf5340_cpunet_reset.c in \v1.6.1\zephyr\boards\arm\nrf5340dk_nrf5340,  and P0.31 is not used by net core:

#define CPUNET_UARTE_PIN_TX  1
#define CPUNET_UARTE_PIN_RX  0
#define CPUNET_UARTE_PORT_TRX NRF_P1
#define CPUNET_UARTE_PIN_RTS 22 //11
#define CPUNET_UARTE_PIN_CTS 23 //10
 

So how can I use uarte and BLE together?

Parents Reply Children
Related