This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flashing bootloader and application via J-Link

Hello. I want to make flashing of devices for production faster. So I want to write application together with bootloader via J-Link simultaneously and not via OTA DFU. I'm using S110 v6 and dual bank BLE DFU from SDK 5.1 example. I know that after flashing bootloader and application I just need to compute CRC16 of the DFU bank 0 and write this value to the bootloader settings in the flash, but maybe someone already has a solution to this problem?

Parents
  • Bootloader works perfectly after the aforementioned flash routine: the app can be flashed via the UART bootloader and it boots correctly. The line that is failing is: if (p_bootloader_settings->bank_0 == BANK_VALID_APP) ... which Is evaluating to FALSE even though I have set BANK_VALID_APP using John's method. "bank_0_crc" is also NOT zero. So my conclusion is that "p_bootloader_settings" doesn't have contain the correct data in the first place - any ideas?

Reply
  • Bootloader works perfectly after the aforementioned flash routine: the app can be flashed via the UART bootloader and it boots correctly. The line that is failing is: if (p_bootloader_settings->bank_0 == BANK_VALID_APP) ... which Is evaluating to FALSE even though I have set BANK_VALID_APP using John's method. "bank_0_crc" is also NOT zero. So my conclusion is that "p_bootloader_settings" doesn't have contain the correct data in the first place - any ideas?

Children
No Data
Related