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

DFU CRC error

Hi,

I'm using S130 v1.0 softdevice and bootloader (single bank) from SDK v9.0. When updating an application, I always get a CRC error at end of the upload. I generate the file using following command:

nrfutil.exe dfu genpkg --application app.hex --sd-req 0x67 update.zip

Is there anything additional I need to do?

Regards, Cyril.

Parents
  • Hi Cyril,

    You should generate the .zip file with full parameter. The command for a generic application DFU packet should look like this:

    nrfutil.exe dfu genpkg app.zip --application yourapplication.hex --application-version 0xffff --dev-revision 0xffff --dev-type 0xffff --sd-req 0xfffe
    

    You can change to match with your configuration, but application version, device revision, etc is needed.

    If the issue remains, could you try DFU with our example application and check if it worked ?

  • @Cyril: You are hitting the limit of dual bank update. If you use dual bank update the size of the application should < (256- bootloader size - softdevice size)/2 =~ 64K If you want to update application with size >=64k you would need to use single bank update. To do that simply replace the dfu_dual_bank.c with dfu_single_bank.c (if you are using SDK 9.0).

Reply Children
No Data
Related