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

Trouble receiving UART buffer

Hi,

Im trying to use the NRF51DK evaluation board as a data channel between another MCU and the PCA_10031 bluetooth dongle. Im not using softdevice.

My implementation is based on the radio receiver and transmitter example in the SDK with minor changes.

The setup is working great when the MCU is sending one or two data bytes at low rate, but when there is a ~4 byte buffer, only the first three bytes transferd to the NRF. for example, when the MCU sending the next buffer: ['a','b','c','d','e'] I only see the first three characters.

Currently, the baudrate is 115200 but I have tried lower rates and had exactly the same results. The main loop is:

while(true)
{
	while(app_uart_get(&data) != NRF_SUCCESS){}
	packet = data;
	send_packet();
}

What am I missing here?

Thanks

Related