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

Using S140 with nRF52840, UART example question

Hello, I have a problem.

For example, I am using UART, and I had trouble printing everything when I used "app_uart_put ()" continuously.

My source is simple.

int main (void)
{
   uart_init ();

   ...(syncopation)

   for (cnt = 0 ;; cnt ++)
   {
     app_uart_put ('A');
     app_uart_put (cnt);
     nrf_delay_ms (200);
   }
}

If you run the source as above, only "AAAAAA" will be output but the value of cnt variable will not be output. If you comment out 'A' and run it, the value of the cnt variable will be output normally.

Why?

The above is what we have configured for testing, and we are planning to organize the packets and send them to other devices. However, if the intermediate packet is lost, normal communication will not be possible. Do not have a solution?

Related