Hi Steve,
Some sage previously wrote:
----------------
/*add these e.g. options to gcc when linking "-Wl,--section-start
-Wl,romtable=0xe000"
(actually option for msp430-ld, but we use gcc to invoke the other
programs)

and define the array in the following way:

const unsigned char table[128] __attribute__ ((section ("romtable"))) =
{...};*/
---------
If you are going to write to this later, couldn't you make {...} just
0xff's

 Garst

Steve Underwood wrote:
> 
> Hi,
> 
> Something like the following:
> 
> uint8_t __attribute__((section(".infomem"))) stuff[128];
> 
> puts "stuff" into the correct address in info memory. However, it is
> initialised to zero. When I download my code to flash it screws the
> config data I have in info memory. How can this initialisation be
> prevented. It certainly isn't what I want. :-(
> 
> Regards,
> Steve

Reply via email to