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

Pairing info not saved and Update fail

Hi all:

So I'm going straight to the point, I have a board with NRF51822 that I dump the flash and programmed with another one, after that I notice that the firmware I used was not what it was suppose to be and flashed back my original one and the problem now is, I can pair the bluetooth but after I shutdown I loose that info and I need to pair it again all the time. One other this is that I'm no longer able to Update the device over the air because it downloads the file via cellphone but can re-program on the actual device...gives me an error. Looks like the device is write locked. Already programmed via OpenOCD, Segger Flash Lite, NRFGo Studio and same problem. Anyone knows how can I solve this, it's probably a bit locked I don't really know. I have and J-Link and St-Link V2 to use. Many thanks to all!

  • Hi Nimster, 


    Could you please state the SDK and softdevice you used on your board ? 
    When you flashed the original firmware, did you do a chip erase of your chip ? How did you get the original firmware, by compiling it or you also dump the flash out ?
    By flashing other firmware on the board, the flash storage library may get confused if the previous firmware has put some garbage data into the storage area of the flash manager. 

  • Hi Hung:

    I'm trying to replicate what I did. I have a scooter that has this chip on it so I wanted to reprogram it I dumped the full bin 256kb. After that I programmed with a new file via STlink v2 using the OpenOCD, did a mass erase and everything went fine but the fw was buggy and I wanted to go back to stock, I flashed my original dump and everyhting was ok except. After I pair my scooter with the phone, I need to pair it everytime I shutdown the scooter (information does not get saved), cannot change the name of the scooter (device) it comes back to the default name, no longer can update via official app, downloads fine but the fw does not save...it seems almost like that the flash is write locked somehow. Tried to flash with Stlink and Jlink and with OpenOCD, Seeger and NRFStudio and the same problem appears. I only have the bin/hex files, dont have the code.

  • Any info? Someone told me that after flashing NRF51 with ST-Link V2 ROM gets locked...is this true?

Related