This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Fill of flash memory during reprogram UVision 3

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

Parents
  • Agreed on the checksums,etc.

    The first time I get the chip, yes it's blank / filled. But while developing and burning new code (less than 8k of stuff, I'm storing config up at 0x3FFF, so no worries about conflicts) then a saved profile at 0x3FFF doesn't get automatically cleared to 0xFF's. So I have to use a commmand to wipe that area, but I'd rather like to know for sure that when I reprogram a chip that the configuration page will be completely cleared (in case I forget).

Reply
  • Agreed on the checksums,etc.

    The first time I get the chip, yes it's blank / filled. But while developing and burning new code (less than 8k of stuff, I'm storing config up at 0x3FFF, so no worries about conflicts) then a saved profile at 0x3FFF doesn't get automatically cleared to 0xFF's. So I have to use a commmand to wipe that area, but I'd rather like to know for sure that when I reprogram a chip that the configuration page will be completely cleared (in case I forget).

Children