What linker command option is there to fill unused 8051 program memory
with a value (i.e. 0xFF) and how do I use it?
Avery Weigh-Tronix, LLC=20
1000 Armstrong Drive=20
Fairmont MN, 56031=20
Web page: <file://www.wtxweb.com <file:///\\www.wtxweb.com> >
Holland, Eric schrieb:
> What linker command option is there to fill unused 8051 program memory
> with a value (i.e. 0xFF) and how do I use it?
There is no such option. Please use srec_cat from the package srecord
(http://srecord.sf.net) to fill unused space within the Intel Hex file
with the desired value.
(Manual at: http://srecord.sourceforge.net/srecord-1.23.pdf)
Note, in many cases it makes sense use the value 0x12 instead
of 0xff on the 8051. It's decoded as:
0x12 0x12 0x12 LCALL 0x1212
Obviously you need to have an error handling routine at 0x1212 then
(or CLR EA and an endless loop waiting for the watchdog to bite).
Not kidding, I've seen this routine being called during ESD tests.
Get latest updates about Open Source Projects, Conferences and News.