Hi all,
I am working on nrf52840 chip with SDK 17.0.2.
Our application runs smoothly and we want to add it the capabilities of upgrading another nrf52840 chip using Nordic DFU service.
In order to do that we turn off our application RADIO, suspend most of our freeRTOS tasks and then call for vTaskSuspendAll to suspend the scheduler.
Then we enable the Softdevice (as part of ble_stack_init) and send the image to the remote nrf52840.
This works well.
When we finish the DFU process we call nrf_sdh_disable_request and wait until we know that the Softdevice is disabled.
Then we resume our tasks and want to resume the scheduler by calling xTaskResumeAll();
The problem is that we get the following hard fault:
<error> hardfault: HARD FAULT at 0x00029350
<error> hardfault: R0: 0x00000A85 R1: 0x08F38168 R2: 0x00684088 R3: 0x0000000B
<error> hardfault: R12: 0x2000FE40 LR: 0x0002AEB7 PSR: 0x21000200
<error> hardfault: Cause: Data bus error (return address in the stack frame is not related to the instruction that caused the error).
The call stack is :

What am I doing wrong ?
Thanks in advance for any assistance ,
Rafalino
