Am 21.09.2002 15:47:52, schrieb Kittiphan Techakittiroj <[email protected]>:

>Is there a way to fix the location of the constant array?  I try to 
>implement a mapping table that can
>be updatable, so I need to make sure that the array is in the flash 
>segment that I want to delete.

add these e.g. options to gcc when linking "-Wl,--section-start 
-Wl,romtable=0xe000"
(actually option for msp430-ld, mut we use gcc to invoke the other programs)

and define the array in the following way:

const unsigned char table[512] __attribute__ ((section ("romtable"))) = {...};

chris



Reply via email to