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

BLE_UART using NRF52810 Chipset

Hi Sir: 

I am using SDK nRF5_SDK_17.0.2,the chip is nRF52810. Using the ble_peripheral\ble_app_uart.

The IO is using P0.6 as the BLE Uart's RX Pin,And P0.7 is used as BLE uart's Tx Pin.

But when i change the Rx Pin as P0.6 ,the system will be crashed .

 I have find ,there is no used the PIN Why?

Best Regards!
James Lee

  • Hello,

    But when i change the Rx Pin as P0.6 ,the system will be crashed .

     What does it behave like when it crashes?

     Do you not see notifications on the central (phone)? Does it disconnect? Do you see the UART interrupts on the nRF?

    Have you tried debugging? Have you tried to monitor the log? What does it say? Do you see anything particular when the crash occurs? Did you see any logging earlier? The ble_app_uart uses RTT as a log backend. Let me know what IDE you are using if you haven't seen any logs.

     

    The IO is using P0.6 as the BLE Uart's RX Pin,And P0.7 is used as BLE uart's Tx Pin.

    But when i change the Rx Pin as P0.6 ,the system will be crashed .

     That is the same. You say RX pin P0.6 in both cases. Did you mean that you changed to or from P0.06? If so, where does it work, and what did you change it to when it doesn't work?

    If your log says "Fatal error.", try adding DEBUG to your preprocessor definitions. If you are not sure how to do this, let me know what IDE you are using.

    Best regards,

    Edvin

  • Hi Edvin:

    • What I found was that the system was rebooting all the time.
    • We using STM32F745's uart8 to communication withe NRF52810.
    • And in mobile phone ,The phenomenon is constantly connected, disconnected, disconnected
    • And Finally, it is found that the serial port error processing causes the system to restart
    • The data sent by stm32f745 is 0x55, but the data received by nrf52810 is incorrect.

  • What does the log from the nRF say before it resets? Have you tried debugging the nRF?

  • Hi Edvin:

     I have debug and found the system is reset when uart receiving error.

    I using the example code.nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10040e

    Just only modified the Rx PIN and Tx PIN(Uart).

    And remove the button part.

    Other not modifed .

  • Ok. Where does it reset? Does any of these events occur:

    APP_UART_COMMUNICATION_ERROR

    APP_UART_FIFO_ERROR

    in your uart_event_handle()?

    Please check this.

Related