Hi,
My current application is using a softdevice and I need to update it using DFU to an application without softdevice.
The new application must start at 0x0 address, so I will need to erase both softdevice and MBR in the process of upgrade.
I've tried to create a custom application that would be loaded to a device using the regular DFU process and then erase MBR+softdevice and place my next application in their place using fstorage (both softdevice and NVIC variants) from it. In this application I don't use softdevice, it is only used for replacing the old firmware with new one.
I've turned off the APPPROTECT for MBR and softdevice areas in the nRF bootloader.
If I use the softdevice option of the fstorage the erase of softdevice and MBR is unsurprisingly unsuccessful.
If I use the NVIC option of the fstorage, the MBR and softdevice sections are successfully erased, but flash write operations are being stuck. My guess is that the vector table modified by MBR is an issue.
My question is the following:
How would I replace the existing softdevice application by a blank application ( let's say 'blinky', for example) that must start at 0x0 address starting with the DFU?
Thank you.