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

I'm very urgent , When PC sends UART data, nRF52810 cannot enter a callback

The production line is waiting , I'm sorry to ask that it's urgent

This debug tools display nRF52810 UART Tx is Successful

If I add the code

case APP_UART_TX_EMPTY:
printf("\r\nTest.\r\n"); 
break;

Then the debug tools will continue to print "Test"

This callback function is entered, but I want to receive data before entering.

Thanks all

Parents
  • Hi,

     

    If I add the code

    case APP_UART_TX_EMPTY:
    printf("\r\nTest.\r\n"); 
    break;

    Then the debug tools will continue to print "Test"

    This callback function is entered, but I want to receive data before entering.

     

    This code will continuously print "Test", as you are pushing data in a event that is signalling when the buffer is empty. What do you really want to do here?

    Could you explain a bit more in detail?

     

    Best regards,

    Håkon

Reply
  • Hi,

     

    If I add the code

    case APP_UART_TX_EMPTY:
    printf("\r\nTest.\r\n"); 
    break;

    Then the debug tools will continue to print "Test"

    This callback function is entered, but I want to receive data before entering.

     

    This code will continuously print "Test", as you are pushing data in a event that is signalling when the buffer is empty. What do you really want to do here?

    Could you explain a bit more in detail?

     

    Best regards,

    Håkon

Children
Related