Re: Issue [email protected]
Peter Bigot <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.user |
|---|---|
| Message-ID | <CAPOJ94NCG8W0K1-2Z=vtp_+1VBeUrEDZT9BtT8JTG3nqZq22Kg@mail.gmail.com> |
-ma20 -msr20 is an incoherent combination of flags: you are asking for 20-bit object sizes and 20-bit support in interrupts in an application that uses 16-bit code and data pointers. Use the -mmemory-model option to select a supported combination (medium is recommended), and don't use attributes on declarations unless you need to mix memory models (which is not recommended). On Tue, Aug 6, 2013 at 2:01 PM, Johnaltan Neves <[email protected]> wrote: > Hello, > > I'm trying compile my firmware using msp430-gcc using 20 bits. I can very > well compile using source directives (__attribute__((__a20__))) But if I > try compile using -ma20 and -msr20 options it doesn't work and then this > error appears: > > /usr/local/msp430/bin/msp430-gcc ./LCDL.o ./TLC5941.o ./cpu.o ./dac.o > ./delay.o ./main.o ./menu.o ./messenger.o ./metter.o ./mystring.o > ./recorder.o ./system.o ./teclado.o -mmcu=msp430fg4618 -lm -lc -lgcc -lfp > -ma20 -msr20 -o "espectro_tiny.elf" > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libm.a(ef_log10.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libm.a(sf_modf.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libm.a(ef_log.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(errno.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(atoi.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(sprintf.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(vuprintf.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(itoa.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(ltoa.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(strchr.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(strcmp.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(memcmp.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(strcpy.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(memcpy.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(memset.o) > does not have CPUX target data > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: Warning: > > /usr/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/lib/libc.a(strtok.o) > does not have CPUX target data > > What is wrong? Can you help me? I saw that on > /usr/local/msp430/lib/gcc/msp430/4.7.0/mcpu-430x/ don't have libc.a, > libm.a... > > > -- > Johnaltan Ivon Neves > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users