Program freezes on SVCALL

My program is freezing at some point in the initialization procedure.

It is freezing in our function that initializes the ble stack.

This is only happening to one of my devices so I am led to believe this is a hardware issue.

Stepping through the code led to the SVCAL function, and putting a debug statement here showed it is the last item that is called.

I did look at  NRF52840 ble_App_uart_c example hangs in first start and debug mode (SDK 17.1.0)
And even without debugging (which isn't usually an issue) the program still hangs.


Investigating the sd_softdevice_enable function I found that the function definition of sd_softdevice_enable() could not be found using SEGGER's find references or find definition tools. 

Is there a hardware issue that could cause trouble with the softdevice?

Thanks

Parents Reply
  • I believe it would be looping in the softdevice but I am not sure.

    What happens is it will run up until it initializes the BLE stack, then the debugger will reach a point and pause. When I hit start execution again nothing happens and when I hit pause again it doesn't take me to the point in the program where it is executing. 

    I'm fairly sure that when it has a hardfault issue it directs me to an assert.

Children
No Data
Related