Hi,
When upgrading the DFU with an app everythings goes seemingly fine, all init+app bytes received, validated and so on. The DFU does its resets when done updating settings page and activating the new app fw. Something is wrong because after jump_to_addr() we'll end up somewhere which is not the start of my application.
Device: nRF52840
SDK: 16.0.0
Ported secure dfu: pca10056_uart_debug example
DFU Modification: Added a CAN transport instead of the UART transport, and not using slip encoding. Have not touched any other file but sdk_config.h for enabling the SPI interface to the CAN controller.
App example for tests: blinky_PCA10056_mbr
Package generation: nrfutil pkg generate --key-file myKey.pem --application blinky_myBoard_mbr.hex --hw-version 52 --sd-req 0 --application-version 1 blinky_myBoard_mbr.zip
IDE: Segger Studio
nrfutil version: 6.0.1
My real application is using the softdevice, but I present this simple MBR example which shows same error behaviour. Otherwise I have successfully generated SD packge, App package, and sent them over CAN to DFU one after the other and all is good until the jump to address 0x1000 which fails.
I'm thinking this seems like a linking problem but I have not been able to what I'm doing wrong.