Hi,

> >> >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.

that's no problem because with 59.5 kB programs initializing the rest of 0.5 kB 
does not hurt.
It seems that i have to change the section definitions by adding the =fill 
option. But i could not
find the definitions of the MSP430 sections.
Where are the definitions of the MSP430 sections?

Regards,

Rolf



Reply via email to