Failure in ble_stack_init during startup

We are trying to bring up a new run of an existing PCB design. No changes in the area of the processor, but a different assembly house. The first call inside ble_stack_init, a call to nrf_sdh_enable_request(), fails and returns an error code of 8. No reference anywhere gives a usable explanation.

Strangely, if started by "copying" the hex file onto the Jlink "drive" (the nRF52832 DevKit), it succeeds.

What should we be looking for?

Parents Reply Children
  • I'm not sure if you fixed something on the website, or my poking around and installing some other commands first fixed it, but it seems to have worked. Now I need to go back to your previous instructions and try again.

    2026-06-19  8:57:44.36 d:\Download>nrfutil install toolchain-manager
    [00:00:03] ###### 100% [Install packages] Install packages
    2026-06-19  8:58:17.81 d:\Download>nrfutil install trace
    [00:00:06] ###### 100% [Install packages] Install packages
    2026-06-19  8:58:35.05 d:\Download>nrfutil install device
    [00:00:05] ###### 100% [Install packages] Install packages
    2

  • 2026-06-19  9:01:12.66 d:\Download>nrfjprog --memrd 0x40000400
    0x40000400: 00000000                              |....|

    2026-06-19  9:03:16.55 d:\Download>nrfutil device read --address 0x40000400 --direct
    682528135
    0x40000400: 00000000                              |....|

    So, this reports RESETREAS as all zero, just as my code did. I'm not sure what the second line does, but I think that's the startup value of the stack pointer.

    Next?

  • Please confirm whether you changed your code so that it is no longer clearing the RESETREAS register. This step is essential for this test. The second line there is the serial number of the debugger and is not a valid memory address.

  • Yes, and I deleted all extraneous code prior to the BLE initialization. It still crashes in the same place and resets.

Related