Hello,
I am using the nRF51822 with SDK v9.0.0, SoftDevice S110, and the DFU bootloader v8.1.0.
For certain reasons, I want to reserve one page of the 'app data' for shared information between the application and the bootloader. To achieve this, I have reserved this page in the bootloader by setting DFU_APP_DATA_RESERVED = 0x0400 (previously it was set to 0x0). Now, I want to create an image of the new bootloader and distribute it using DFU.
I have already created the bootloader zip file using nrfutil and followed all the requirements. However, after the DFU process finishes, the bootloader is no longer starting. I tried debugging the bootloader and discovered that the dfu_bl_image_swap function is causing a HardFault_Handler.
Does anyone have any idea what might be causing this issue?
Note that if I perform the same process without reserving the 'app data' page (DFU_APP_DATA_RESERVED = 0x0), the DFU is successful, and the bootloader starts correctly.