At 05:41 22-04-05 -0700, you wrote:
>hai guys,
>
> i have another error, when i am compiling i am getting the following
>error....
>
>
>
>Gsm.o(.flashA+0x6): In function `UartTaskComplete':
>/cygdrive/c/Documents and Settings/Desktop/latestOBDISODriver/Gsm.c:38:
>multiple definition of `OBDDY'
>Main.o(.flashA+0x6):/cygdrive/c/Documents and Settings/Desktop/latestOBD
>ISODriver/Main.c:38: first defined here
>Gsm.o(.flashA+0x5a): In function `GsmTimeout':
>/cygdrive/c/Documents and Settings/Desktop/latestOBDISODriver/Gsm.c:77:
>multiple definition of `IMEINumber'
>Main.o(.flashA+0x5a):/cygdrive/c/Documents and Settings/Desktop/latestOB
>DISODriver/Main.c:110: first defined here
>Gsm.o(.flashB+0x0): In function `UartTaskComplete':
>/cygdrive/c/Documents and Settings/Desktop/latestOBDISODriver/Gsm.c:37:
>multiple definition of `UserList'
>
>msp430-ld: region data is full (JL2 section .flashA)
>make: *** [JL2] Error 1
>
>thes e varibles, like UserList,IMEINumber etc.. are flash variables and i
>have declared it as follows in the header file:
>
>
>
>const __attribute__ ((section (".flashA"))) int SystemPrefix;
>
>const __attribute__ ((section (".flashA"))) struct OBDDynamicVariables
>OBDDY[2];
>
>const __attribute__ ((section (".flashA"))) struct OBDStaticVariables OBDST;
>
>const __attribute__ ((section (".flashA"))) unsigned int IMEINumber[8];
>
>const __attribute__ ((section (".flashA"))) unsigned int MyPhoneNumber[8];
>
>const __attribute__ ((section (".flashA"))) unsigned int UserPhoneNumber[8];
>
>const __attribute__ ((section (".flashA"))) int SystemStatus ;
>
>i thought it might be becoz of multiple inclusion of header files,and i
added
>
Any object is only linked once into the application. If you declare a
variable twice, you'll get a compiler or linker error which clearly
indicates this.
The problem you have is caused by the area for flashA being too small for
the amount of data you want to store in it. You should either modify the
linker description file or store less data in the section.
Nico Coesel
/---------------------------------------------------------------\
| N C T Developments |
|Innovative solutions for: |
| Electronics * Computers * Internet * Networking * Teleworking |
\---------------------------------------------------------------/