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
  • After you do eraseall, the old bootloader is erased and there shouldn't be any problem with the MBR. Everything is erased with that command.

    I want you to post the full log when you get "Error: Single: Invalid Bank Info: Error code - sd_ble_cfg_set: 0x00000000"

    You would need to check if the RuuviTag has the 32kHz crystal on it. On the DK we have the crystal so the softdevice is initialize with the crystal enabled. You need to use 32kHz RC if you don't have the crystal. I suggest you to test with normal examples first, start with blinky, then ble_app_hrs, then you can start with the bootloader.

Reply
  • After you do eraseall, the old bootloader is erased and there shouldn't be any problem with the MBR. Everything is erased with that command.

    I want you to post the full log when you get "Error: Single: Invalid Bank Info: Error code - sd_ble_cfg_set: 0x00000000"

    You would need to check if the RuuviTag has the 32kHz crystal on it. On the DK we have the crystal so the softdevice is initialize with the crystal enabled. You need to use 32kHz RC if you don't have the crystal. I suggest you to test with normal examples first, start with blinky, then ble_app_hrs, then you can start with the bootloader.

Children
No Data
Related