This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrfutil generate dfu zip pkg error

Hello,

I use nrfutil to generate the dfu .zip file, the error log is listed below. what is the reason?  the softdevice is s140.  thanks.

>>nrfutil pkg generate --hw-version 52 --application-version 1 --application nrf52840_xxaa.hex --sd-req 0x96 --key-file private.key AppDfuPkg.zip

Parents Reply
  • Hello, 

    The application FW starts at address 0 but should start at 0x22000 if you use s140 v.5.0.0-2 Alpha (memory layout). The first flash page is actaully reserved for the Master boot record (MBR), and is probably the reason for the error you see in nrfutil. Recommend that you use one of the BLE SDK as starting point, these will have the correct linker settings for use with the softdevice. 

    For reference, here is the memory layout for the .hex file you provided:

    app.txt

Children
No Data
Related