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

WT51822-S4AT UART problem. Board can receive data but not send.

Hi,

I have two WT51822-S4AT boards. My goal is to have this setup:

PC <--> board 1 via UART <--> board 2 via BLE <--> MCU via UART

I have flashed one of the boards with the ble_app_uart code with some small modifications so it works on the WT51822 board including changing the flash memory layout, rx and tx pins etc and the board is advertising and I can send data to it from the Nordic nRF Toolbox app on my iPhone.

I have flashed the other board with the ble_app_uart_c code with the same modifications needed by the WT51822 board. 

When booting both boards, the central scans for the peripheral, finds it and connects to it.

Now to my problem. I can't send data from any of the boards. When running only the peripheral board along with the nRF Toolbox app, it receives the data from the app but whenever I try to send data from the board to the app it gets disconnected. I use Putty and when just entering 20+ characters in the window, the app say: 

[Callback] Central Manager did disconnect peripheral
Error Code: The connection has timed out unexpectedly.

Same goes for the central when trying to send to the peripheral. I get a HardFault when invoking the ble_nus_string_send function and more precisely the sd_ble_gatts_hvx function.

HardFault_Handler: 0x0001B0F0

What am I missing? Please help.

I'm using SDK 12.3.0 and softdevice s130.

Related