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

Target resetting when initalizing UART

I have a strange problem on my target nRF51822. When I try and use the UART interface between my nRF51 and my host MCU, it causes the nRF51 to reset and the RTT terminal to freeze. See the RTT log window capture attached.

rttsession.JPG

www.dropbox.com/.../rttsession.JPG image description

The problem occurs if I either uncomment this line of code

 //UNUSED_VARIABLE(app_uart_get(&data_array[index]));

in the UART event handler function:

Or when I try and initialize the UART. Everything else on my custom target board works perfectly.

I'm attaching the full source file in case someone can see the problem: main.c

Thanks in advance for any ideas!

Related