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

Flashing alternating applications nRFgo Studio

Two applications using the same softdevice, s110, blinky and beacon from the examples.

Flashing softdevice and beacon successfully. Replacing beacon app by blinky successfully. Trying to replace blinky by beacon:

"Application .. programming failed. The flash is not erased."

To get beacon back on I have to erase and reflash softdevice! May seem like a minor, but why? Makes me think that there is something that I do not understand about the memory structure.

Why can't I freely flash back and forth different applications in the 0x18000 area without going back and reflash softdevice?

Sorry did not know how to do this since I couldn't add images to comment. Yes both Blinky and Beacon start in 0x18000. But they are using a different address type Extended Segment instead of Extended Linear, I am using the armgcc toolchain if that has something to do with it. image description image description

Parents
  • I'm able to do this. Are you using the latest version of nRFgo Studio? I'm not sure how to reproduce the error you get. If I try to flash a hex with memory address 0x00000 after I have flash a SoftDevice I get.

    image description

    Are you sure your blinky project starts at 0x18000? You can check the the hex file.

    It should look like this if the start address is 0x18000:

    image description

    Not like this (start address is 0x00000):

    image description

    Edit 06.07.2015: I have been able to reproduce the error, this is a bug in nRFgo Studio. It should be able to erase the old application and flash the new one. This will be fixed in the next release. In the meantime an Erase all is required.

  • Thanks, then we got total clarity on my flashing issues!! Doing it with nRFgo was just my last resort try since I didn't get it to work with JLink in Linux, this was solved by RK above and was an error by me.

Reply Children
No Data
Related