I am using the nRF 5 SDK 17.1, with the un-modified Secure bootloader from the Examples, and with a simple application packaged as zip I can get it uploaded and running Ok on the device (nRF52840) by DFU OTA.
Currently I am using an OLED display, with its screen data (a Logo) stored in QSPI starting at address 0x12000000.
What I would like to achieve is: to be able to update the OLED data stored on QSPI via DFU OTA.
I have tried to manually arrange the data to be stored on QSPI in a hex file, using the hex file format, and then fixing the QSPI offset in it with:
objcopy -v -I ihex -O ihex --change-addresses 0x12000000 myhex.hex final.hex
then I can program and verify that new data was stored in QSPI using:
// write the file to QSPI nrfjprog -f nRF52 --qspiini cfg_mydevice.toml --program final.hex --qspichiperase --verify final.hex
I have tried to use "mergehex" to add the screen data ("final.hex") for QSPI to the application hex file and then packing it for DFU with nrfutil.
The result was that the firmware was updated Ok but the QSPI was not written to, probably the bootloader has to be modified.
Question is: How could I store some data (not executable) to QSPI via DFU OTA ?