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

UART resets the chip when sending new line

Hi,

I want to communicate with other chip on UART. the chip on other end requires AT(CR,LF) command to start communication over UART.

UART is setup correctly, but it reset the NRF51 chip following is snippet of my code for sending data over UART

uint8_t p_data[4] = {0x41, 0x54, 0x0d, 0x0a};

for (uint8_t i=0; i<4; i++) { while (app_uart_put(p_data[i]) != NRF_SUCCESS); }

It creates problem only when I try to put 0x0a(new line). otherwise it works ok.

Is there anything I can try to resolve this ???

Related