At 22:52 14-04-05 +0200, you wrote:
>Hi,
>
>Patrick Huesmann <[email protected]> schrieb am 14.04.05 21:56:03:
>> [email protected] wrote:
>>
>> >i want to initialize unused flash with 0x00, 0xff
>> >or another bit pattern. 
>> >How can i do this?
>> >
>> 
>> Depends on your upload procedure.
>
>that's the reason why i want the linker to do it because with different
upload procedures
>the password changes if not all IRVs are used. I had this problem several
times.
>Another reason is that the checksum of the flash content should not depend
on the upload procedure.
>Therefore i need a defined bit pattern in the unused parts.
>And it should be a portable way. I think it can only be done by the linker
or editing the file produced 
>by the linker.
>

I haven't read it thouroughly, don't know whether it will work, but it
looks interesting enough to post:

http://www.gnu.org/software/binutils/manual/ld-2.9.1/html_node/ld_21.html

Be aware though, filling the entire rom area results in large download
files. It may be a good idea to only fill the interrupt vectors. It will
take some tinkering in the ldscripts though.

Nico Coesel


Reply via email to