We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I've got some code that saves setup information to flash if the user wants. I save a code to a memory location to let the software know that whether setup information is available or not. If not, I use defaults.
Is there some way on the UVision IDE that will automatically fill a segment of memory with a byte code when I reprogram? Without this capability, the code believes that there are always saved settings and this would be the quick fix.
Thanks in advance, Matt
Wouldn't your flash programming kit's "erase device" handle that already?
If you really need this, you can always write a little asm module with a couple of
DB 0xff
at the address you want cleared, and link it with your program.
Agreed. I have a manual erase, was looking for a button that automatically linked it to the download. I like your idea of the ASM code however.
Thanks, Matt
Any programmer software worth its salt will have a "full job" kind of button, which runs a complete sequence of erase, blank-check, reprogram, and possibly a verify. Use it.