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

sd_softdevice_enable never returns

Hello,

The sd_softdevice_enable never returns, how can I investigate please ?

With my Jlink probe, it's look halted at address 0x000008CC.

Configuration:

SDK 15.0.0, SD_132_6.0.0 with bootloader

Parents
  • I wouldn't mess with anything on the NVIC when using the SD even just to debug.  All manner of things can go wrong.

    Invariably, the inability to enable the SD is virtually always clock related.  Normally people just mess up the LF clock config info the SD uses and usually this is because it is a custom board and they didn't place the crystal to save money or space.

    It will halt in random places since it keeps chugging along until it realizes the LF clock isn't running.  All the addresses are inside the SD so impossible to say (except for Nordic) what is actually going on at that memory location.

    Double check your clock config.

Reply
  • I wouldn't mess with anything on the NVIC when using the SD even just to debug.  All manner of things can go wrong.

    Invariably, the inability to enable the SD is virtually always clock related.  Normally people just mess up the LF clock config info the SD uses and usually this is because it is a custom board and they didn't place the crystal to save money or space.

    It will halt in random places since it keeps chugging along until it realizes the LF clock isn't running.  All the addresses are inside the SD so impossible to say (except for Nordic) what is actually going on at that memory location.

    Double check your clock config.

Children
Related