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?
As you won't necessarily know the end address of the code at assemble time, I recommend you use the linker to fill the region via scatterloading. A section defined as (something like) the below will likely work:
FILL_REGION +0 FILL 0xFFFFFFFF{}
See https://www.keil.com/support/man/docs/armlink/armlink_pge1362075670305.htm
Thanks. That's what I was looking for in another context also. Good to know. Excellent!