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

Replacing bootloader through nrfjprog - Error: Single: Invalid Bank

I am trying to upload a bootloader to an nRF52832 chip. (This chip is on the ruuvitag and is programmed through their developer board).

I got the bootloader working on the DK but when I tried to upload it to the Ruuvitag I get the log output: Error: Single: Invalid Bank Info: Error code - sd_ble_cfg_set: 0x00000000

The ruuvitag comes with a bootloader based on SDK 12 and SD 3. I am using SDK 13 and SD 4. I am programming using nrfjprog and compiling with GCC.

I suspect that the issue is because of some settings related to the original bootloader that gets confused when loaded with the SDK 13 bootloader, but I am really stuck.

Parents
  • Could you clarify, earlier you mentioned: " I can get the example working such that I can see the DFU, connect to it, but when I attempt to upload the firmware to it, it fails. " Meaning you actually saw DFUTarg advertising by the Ruvitag ?

    One thing you should check if a phone/central device may automatically connect to the Ruvitag or not. If you were bonded with the central before, the central may automatically connect to the device. You can try to change the BLE address before advertising.

Reply
  • Could you clarify, earlier you mentioned: " I can get the example working such that I can see the DFU, connect to it, but when I attempt to upload the firmware to it, it fails. " Meaning you actually saw DFUTarg advertising by the Ruvitag ?

    One thing you should check if a phone/central device may automatically connect to the Ruvitag or not. If you were bonded with the central before, the central may automatically connect to the device. You can try to change the BLE address before advertising.

Children
No Data
Related