Hi everyone,
I'm working on a custom bootloader for nrf52840-based board. The bootloader needs to support DFU from an external SPI Flash and also BLE. I was working on this a few months ago and was able to get a proof-of-concept working. You can see my previous topic here:
devzone.nordicsemi.com/.../need-help-with-a-custom-dfu-transport
I'm now trying to productize this work so we can use it in production. Unfortunately I'm now running into an issue where signature validation always fails with images in my external SPI Flash, but succeeds over BLE (with the same images). Here's a log of the bootloader:
At line 81 is where the signature verification fails.
Some questions and comments:
- I'm using NRF5 SDK 15.0.0 so that I have the same versions of the softdevice/SDK as Mbed 5.15
- I'm using nrfutil 6.1 to generate my packages. I can't remember what version I was using previously where I got my proof-of-concept to work. I see that version 6.0 has issues; are they fixed in 6.1? Should I revert to 5.2?
- In the bootloader, when the SPI Flash DFU fails, it starts up the BLE DFU, and I can *successfully* use the same DFU package over BLE that failed on SPI Flash. This makes me think the DFU package is OK, and it's something else in my code.
Is there a way to further debug the DFU process, especially around the signature validation? Or, does anything else stand out as an issue?
Also, let me know if any additional information would be helpful. Thank you in advance!