Steps Taken:
-
Followed the official Nordic guide for adding DFU support to Thingy:91.
-
Built the project successfully using west build.
-
Tried flashing via:
-
nRF Programmer (USB)
-
SWD (Segger J-Link)
-
-
Both attempts resulted in the same error.
Error: One or more batch tasks failed:
* : Device error: Emulator error: Failed to connect to device: Feature is not supported (Generic)FATAL ERROR: command exited with status 1: nrfutil --json device x-execute-batch --batch-path 'C:\Users\Dell\workspace_2\project\app\build\generated_nrfutil_batch.json' --serial-number
(Erros in vs code)C:\Users\Dell\workspace_2\project\app\build\merged.hexError: Failed with exit code 1. One or more program tasks failed: * THINGY91_: Unable to parse the MCUBoot image file. Unable to parse image header: invalid magic value (FileOpenFailed). Message: Failed, Unable to parse the MCUBoot image file. Unable to parse image header: invalid magic value.(nrf prgrammer)i tried everything but it is giving the same error and additionally there is an bug in the nrf programmer of versions 4.61 and 4.6.2 when initial board setup downloaded this thingy91_mfw-1.3.6_sdk-2.7.0 file and extracted the file in that while tried to upload the modem firmware it was successful and when i tried to upload the sample applications it did not let me when i downgraded that application built successfully now facing problems to upload my hex files.