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

softdevice v2.0.0-8 issue: program stops at sd_ble_enable

Hi

I am trying to modify my application so that it uses the latest version of softdevice (v2.0.0-8.alpha) instead of the current one I am using (v2.0.0-7.alpha). My application works fine for softdevice v2.0.0-7; sd_ble_enable has been modified correctly to use the appropriate RAM base, and I have tested my application and everything works fine. However, when I try and use softdevice version v2.0.0-8, my application just doesn't start. Going through a debugger, it seems that my application stops exactly at sd_ble_enable(), and I can't figure out what the issue is because it does not go beyond this point.

Please note that I have modified the linker *.ld file appropriately so that my program flash starts at 0x1C000.

The SDK I am using is version 11.0.0-2.alpha and I am developing using gcc on an nRF52 EngB devkit.

Thanks

Parents
  • When you write that the application stops exactly at sd_ble_enable(), have you verified that no other instructions are executed? The call to sd_ble_enable() should trigger a software interrupt that invokes the SoftDevice. It would be interesting if you could disable optimization and define DEBUG. Then, if the SoftDevice asserts, you should be able to see this in the error handler. (SoftDevice assertions have ID 0xDEADBEEF)

Reply
  • When you write that the application stops exactly at sd_ble_enable(), have you verified that no other instructions are executed? The call to sd_ble_enable() should trigger a software interrupt that invokes the SoftDevice. It would be interesting if you could disable optimization and define DEBUG. Then, if the SoftDevice asserts, you should be able to see this in the error handler. (SoftDevice assertions have ID 0xDEADBEEF)

Children
No Data
Related