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
  • Yes, sure. But when you program the flash without erasing it - there are situations, where you program the flash in two steps at different addresses, it could well be desirable to pad the space after the program with 0xff.

    My question was actually aiming at the ARM assembler syntax to use in order to fill exactly the amount of data longing from the end of the program to the end of the flash. That's why I posted a piece of assembler instructions that were syntactically probbly wrong but which should show what I meant.

Reply
  • Yes, sure. But when you program the flash without erasing it - there are situations, where you program the flash in two steps at different addresses, it could well be desirable to pad the space after the program with 0xff.

    My question was actually aiming at the ARM assembler syntax to use in order to fill exactly the amount of data longing from the end of the program to the end of the flash. That's why I posted a piece of assembler instructions that were syntactically probbly wrong but which should show what I meant.

Children