This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Program stalled while bluetooth connected

Hi,

I am testing the ble_uart_send function. I found the advertising was OK, but when my phone connected to the board, it stalled but no error was shown. I enabled DEBUG and Logs, the program just stopped without any information. Could you help me debug this? 

Here is a screenshot when the stalling happened:

As you can see, the <info> connected showed then the whole program stopped.

Thanks in advance!

  • Check this if the above image is not showing:

  • Hello,

    You are getting a hardfault exception and if you continue execution (i.e. press the play button) you should see the program reach the hardfault handler in your application. But it's difficult to say exactly what triggered the exception based on the screenshot alone. Maybe you have selected a wrong interrupt priority level for the GPIOTE_IRQn? I notice you are calling the notification send function from this ISR, which means the selected priority must be either 5, 6, or 7.

    From the Softdevice specification document (Application programming interface):

    Best regards,

    Vidar

Related