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.
www.dropbox.com/.../rttsession.JPG
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!