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

bug in dfu !

Hi.

I just spend 2 days debugging problem with dfu. In the function nrf_dfu_app_continue the function nrf_dfu_flash_store is called with len parmeter as bytes and should be words (is 4096 should be 1024). It caused invalidating my data in bank as I used dual bank for small application - smaller than 16kb.

I am working on sdk 12.0 but I checked and in sdk 14.0 this bug is still present.

Best regards, Michal

Parents
  • Hi Michal,

    Yes, in SDK v12.x.0, the len parameter passed innrf_dfu_flash_store() was given in words and not bytes. This is not reflected in the code as you have discovered.

    However, according to the API documentation for SDK v14.0.0, the len parameter passed in nrf_dfu_flash_store() should be given in bytes and not words. Thus it would appear that this has been fixed.

    Best regards

    Bjørn

Reply
  • Hi Michal,

    Yes, in SDK v12.x.0, the len parameter passed innrf_dfu_flash_store() was given in words and not bytes. This is not reflected in the code as you have discovered.

    However, according to the API documentation for SDK v14.0.0, the len parameter passed in nrf_dfu_flash_store() should be given in bytes and not words. Thus it would appear that this has been fixed.

    Best regards

    Bjørn

Children
No Data
Related