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

nRF51822 Beacon v1.1.0 and nRF Toolbox DFU CRC error

Hi,

I've followed the steps mentioned in this thread devzone.nordicsemi.com/.../ and everything seemed to work fine. I've successfully uploaded "nrf51822_beacon_app.hex" file copied from C:\Nordic Semiconductor\nRF51822 Beacon v1.1.0\Precompiled hex directory, however after compilation of the Keil project: C:\Nordic Semiconductor\nRF51822 Beacon v1.1.0\Source Code\nrf51_beacon\ble_app_beacon\pca20006\s110\arm\ble_app_beacon_s110_pca20006 (even without any changes) I'm not able to upload output file (nrf51822_beacon_app.hex) over the air. I'm getting an error at the end of the upload process: remote DFU invalid CRC. I'm using nRF Toolbox Android app v1.11.3 and the same init packet: Nordic Semiconductor/Board/pca20006/ble_app_beacon_v1_1_0_s110_v7_1_0_ext_init.dat

image description

Parents
  • Hi, the .hex is parsed to a binary file in the Anroid app where the .dat file contains a 16-bit CRC of the parsed binary. This is used by the peripheral to check the integrity of the of the received file. Thus, with a recompiled project the CRC value may not match. So you have to generate a new init file with a CRC value that corresponds to the new file. Details about the init file is documented here: developer.nordicsemi.com/.../a00065.html

    This answer by Stefan may also be useful: devzone.nordicsemi.com/.../

    Edit 12.31: Fixed link Stefan's answer. Please see "update 16.12.2014" in his answer for one way of generating the init file.

  • Could you please advise how to generate a new init file for a given project in Keil?

Reply Children
No Data