Dear All, I used the array defined in services_lock.h to setup the nrf8001 module. Therefore, the service setup is written to the OTP memory in the chip. Now, I want to change the setup.
How can I erase the setup on the memory?
regards, Mirac
Dear All, I used the array defined in services_lock.h to setup the nrf8001 module. Therefore, the service setup is written to the OTP memory in the chip. Now, I want to change the setup.
How can I erase the setup on the memory?
regards, Mirac
It is not possible. Now you have to initialise setup if you want different one than the one you flashed.
You mean the module is in garbage now? I can not use it anymore with any other setup?
No, you can use it. But every time you restart your module you have to re-configure it with setup you need (as it starts with setup that is in flash which is not what you want). Flashing setup gives you advantage that you configure it once and you don't have to do it anymore (simplifies your application a bit)
thank you wojtek.
There a 2 areas in the nRF8001 to store the Setup information. i.e. OTP (One Time Programmable) (NVM) location and a RAM area (volatile). If you used the OTP area using the services_lock.h, then everytime the nRF8001 is reset it will use the Setup stored in NVM. However you can load a new Setup to the RAM area as well even if a valid Setup is present in NVM.
How do you do this: Wait for the ACI Device Started Event (Standby) , this will show that the Setup in NVM has been loaded. Proceed to Send the Setup messages for the new Setup and you should get a 2nd ACI Device Started Event (Standby) which shows that the new Setup has been loaded.
So the answer provided earlier is correct that you cannot load a new Setup to the NVM however you can continue to load a Setup to the volatile memory and use the nRF8001.