I am trying to upload an image via BLE DFU, tested on mobile phone and Desktop (Windows) But I receive the following error after all packages have been sent to the device. Without signature required from the bootloader side everything works. With #define NRF_DFU_REQUIRE_SIGNED_APP_UPDATE 1, the following error occurs.
One might assume the package was generated with the wrong private key, but if I do that, the DFU aborts before the first packet is sent. The same is true if the wrong application version is set in the firmware package. So what else can be done wrong?
.local/bin/nrfutil pkg generate --hw-version 52 --sd-req 0x0100 --application-version 9999 --application /mnt/c/git/nrf52833/Output/Debug/Exe/firmware_256ms.hex --key-file private.pem app_dfu_package.zip