I’ve been looking at persistent registry using RegFlushKey(). Currently, I see it very useful for development purposes; however, in the future, it could become useful for our production software.
I’m assuming that currently for BitsyX, the only way to clear persistent registry is to reload the OS image or use the bootloader menu.
I have two requests:
- a procedure (or addresses) to clear persistent registry from the bootloader menu.
The persistent registry typically resides in the area of flash after all of the ADSLOAD.xxx files and before the CE image. It's size is 512k, but the base address can be different based on the device.
To erase it you must open the flash and do block erases, which is not trivial. Your system should have either a ADS Pesistent Registry manager in the Control Panel or EraseRegBackup.exe in the \Windows folder of the device for erasing it.
This is good. The image we are using has EraseRegBackup.exe which we can easily call from our apps. The only drawback is that it has a confirm dialog but is ok for now.