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

DFU CRC error

Hi,

there are similar questions to this but I cannot solve my problem. I am trying to upload a new code using DFU by means of a smartphone (using nRF Connect) or PC (using Master Control Panel), without success. The code uploads correctly till 100% but then at the very end it gives me CRC error.

The very first time I upload a new code with DFU (after programming everything with a programmer of course) this does not happen, but if I try to do this more times (except if I upload the exact same code) this error happens.

I am using nrf51822, SDK 11, s130 (v2.0.1). The code is a modification of the ble_app_hrs_rscsc_relay code. The bootloader I use is also a modification of the bootloader dual_bank_ble_s130.

The modifications are done in a way that the main application writes in memory (using pstorage.h) a byte that the bootloader can read to go into DFU mode (therefore the bootloader includes pstorage.h as well).

The .zip package is correctly generated (I asked this in a past question and it seemed ok).

Could someone help me?

Thank you very much

Parents
  • You must have modified the bootloader so that it accept the firmware on the first run.

    As I suggest you need to look into the CRC calculation and check what cause the CRC mismatched.

    You can also try to test with the default bootloader example. If the default bootloader works fine, then there must be something wrong with the modification of the bootloader.

Reply
  • You must have modified the bootloader so that it accept the firmware on the first run.

    As I suggest you need to look into the CRC calculation and check what cause the CRC mismatched.

    You can also try to test with the default bootloader example. If the default bootloader works fine, then there must be something wrong with the modification of the bootloader.

Children
No Data
Related