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 flash with data

My program in flash end at some point. From that endpoint on I'd like to fill up the whole flash with 0xff.

Something like

.equ FlashDictionaryEnde,   0x00100000

.equ numberofbytes , FlashDictionaryEnde-.
.space numberofbytes,0xff

doesn't work.

How can I achieve this?

Parents
  • Since 0xFF is the erased state of the flash, the obvious choice would simply be not to program the flash past the end of the code. This can be done if you can produce a binary file of the correct length, or a hex file that only contains data up to that offset, which is what the toolchain usually produces. Actually programming lots of 0xFFs into the flash wastes time.

Reply
  • Since 0xFF is the erased state of the flash, the obvious choice would simply be not to program the flash past the end of the code. This can be done if you can produce a binary file of the correct length, or a hex file that only contains data up to that offset, which is what the toolchain usually produces. Actually programming lots of 0xFFs into the flash wastes time.

Children