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

  • Hi ,

    Thank you for answer

    I want to receive debug tools data, and then transmit data to mobile phone through nRF52810 BLE.

    Debug tools(UART Tx) ---> (UART Rx)nRF52810(BLE) ---> mobile phone

    uart_event_handle should be a callback function

    I don't understand , why does the system continue to enter this function ?

    And then i use the debug tools to send data ,  but can not enter the callback function ?

    ===========================

    nRF52810 send data to Debug tools is successful

    SDK:nRF5_SDK_15.0.0_a53641a

    example:ble_peripheral \ ble_app_uart

Reply
  • Hi ,

    Thank you for answer

    I want to receive debug tools data, and then transmit data to mobile phone through nRF52810 BLE.

    Debug tools(UART Tx) ---> (UART Rx)nRF52810(BLE) ---> mobile phone

    uart_event_handle should be a callback function

    I don't understand , why does the system continue to enter this function ?

    And then i use the debug tools to send data ,  but can not enter the callback function ?

    ===========================

    nRF52810 send data to Debug tools is successful

    SDK:nRF5_SDK_15.0.0_a53641a

    example:ble_peripheral \ ble_app_uart

Children
No Data
Related