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

Unable to receive Data from Raspberry Pi to nrf52 DK over uart ttyS0

I am trying to send some data from RPi , And I am using the example of NRf Uart APP.


printf("\r\nUART example started.\r\n");


while (true)
{
uint8_t cr;
// printf(" \r\n entering loop!\r\n");
//app_uart_flush();
while (app_uart_get(&cr) != NRF_SUCCESS);
{ //printf(" \r\n Not recieving \r\n");
}

// if(cr!=NULL)
// printf(" \r\n received data %d!\r\n",(int)cr);


// while (app_uart_put(cr) != NRF_SUCCESS);
app_uart_flush();
// printf(" \n %s \n",cr);
if (cr == 'q' || cr == 'Q')
{
printf(" \r\nExit!\r\n");

while (true)
{
// Do nothing.
}

This is the section i am having difficulty understanding

I am sharing the output screen also.

As you can see what i expect as an outout and what i get.

Please help.

Right window is an Rpi window via putty and the left window is a tera term debug terminal

I have tried changing clock speeds,that doesn't help.

I have verified TX and RX pins and jumber wires are fine.I am not using CTS and RTS pins

I have connected RPi to a USB TTL converter and i was able to receive the data.

 

Related