Fend, Matthias wrote:

if i want to use a flash-segment for "runtime" data - no code should
be placed into this segment - because it will be "trashed" in runtime ...

so what do you think is the best/smartest/only solution to tell the compiler/
linker not to use this flash segment?
do you realy need to erase the program memory? you have 2x 128Bytes information memory (flash) which is not used by default and is designed to be used for calibration data etc.

has anybody used this feature in a similar way ?

yes, see firmware for the serial<->JTAG adapter in our CVS on http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mspgcc/serJTAGfirmware/

you 'll see in the makfile:

-Wl,-Ttext -Wl,0xe000

which is the linker option to limit the used code memory to 8kB while the rest of the flash is unsed/fee for downloads at runtime by your software

chris


Reply via email to