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

Program flashing issue with a bootloader installed

NRF52 pca10028 DK - SDK14 - Arm GCC (Eclipse) - SD 5.0.0 - bootloader_secure_ble

Using either nRFGo Studio or eclipse to program the flash (it does it with both)

I can flash the soft device and the bootloader (in that order) and the bootloader starts fine. If I then program the application, it says it flashed OK but still starts the bootloader (not the application).

I can, however load the same exact program via bluetooth (as a zip package) and it starts fine. I don't have a problem doing that, I am just not sure why it flashes OK over ble (via the bootloader) and not through eclipse or nrfgo studio.

I also tried a mergehex with all 3 files and the bootloader only comes up and not the program.

I can use nrfgo studio to program just the softdevice and application - it works fine, just not with a bootloader installed.

When I compare the sizes and addresses of the SD, BL, and App in nrfgo studio if programmed via nrfgo studio (program does not load) and programmed over ble (program starts), I see no differences - they are identical.

Any help would be appreciated!

Bryan

Parents
  • I updated nrf5x command line tools (had version 9.3.1 - latest is 9.6.0) and retried as you suggested. It still would not work. I did some searching and found that a flag for a valid application needs turned to 1 and crc settings need added to memory also.

    I then came across this page in the infocenter that talks about a way to generate and settings file for your app that you mergehex into the SD-BL-APP merged file.

    After doing that and flashing the new merged hex file (with the new settings file added), it works perfectly.

    I can actually use nRFGo Studio to flash the new hex file too and it works.

    Thanks for your help Nguyen.

Reply
  • I updated nrf5x command line tools (had version 9.3.1 - latest is 9.6.0) and retried as you suggested. It still would not work. I did some searching and found that a flag for a valid application needs turned to 1 and crc settings need added to memory also.

    I then came across this page in the infocenter that talks about a way to generate and settings file for your app that you mergehex into the SD-BL-APP merged file.

    After doing that and flashing the new merged hex file (with the new settings file added), it works perfectly.

    I can actually use nRFGo Studio to flash the new hex file too and it works.

    Thanks for your help Nguyen.

Children
No Data
Related