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

How to upload Bootloader HEX in nRFGO Studio

Hi,

I have a hex file that builds [experimental_bootloader_secure_usb].

If you use keil, it will be downloaded and operated stably on board.

However, if you do not use keil and upload the USB DFU Hex file using [Program Bootloader] using nRFGO Studio, an error occurs and the bootloader does not work.


Is there any way to easily upload a bootloader's hex file without using Keil?

For reference, I am using the nRF52840 PDK and S140 5.0.0-2 Softdevice.

Parents Reply
  • That should work if you remember to erase the chip before you program (i.e. nrfjprog --eraseall before nrfjprog --program NRF_CDC_DFU.hex).

    Another option is to do the steps in one command by adding -f & --chiperase if you want to erase all available user flash (including UICR registers) before you program the hex file. By adding -f (family), the command should execute quicker.

    nrfjrprog -f NRF52 --program NRF_CDC_DFU.hex --chiperase

    See this link for more info & command options.

Children
No Data
Related