ke, 2010-09-08 kello 14:37 +0200, M. Andree kirjoitti: > Am 08.09.2010 11:22, schrieb Mihai Galos: > > Dear all, > > > > I am facing the following compilation problem for the TI MSP430f5438 : > > > > C:\mspgcc\bin\..\lib\gcc-lib\msp430\3.2.3\..\..\..\..\msp430\bin\ld.exe: > > region text is full (Compiler.elf section .text) > > C:\mspgcc\bin\..\lib\gcc-lib\msp430\3.2.3\..\..\..\..\msp430\bin\ld.exe: > > region text is full (Compiler.elf section .text) > > C:\mspgcc\bin\..\lib\gcc-lib\msp430\3.2.3\..\..\..\..\msp430\bin\ld.exe: > > section .text [00005c00 -> 0001afc7] overlaps section .data [00005c00 -> > > 00005c21] > > C:\mspgcc\bin\..\lib\gcc-lib\msp430\3.2.3\..\..\..\..\msp430\bin\ld.exe: > > section .vectors [0000ff80 -> 0000ffff] overlaps section .text [00005c00 -> > > 0001afc7] > > > > this mcu has 256kB of Flash, and 0x01afc7 - 0x005c00 = 0x153C7, about 87kB. > > I don't understand why it says the code is too big. > > > > I have manually defined __MSP430_5438__ and compiled with -mmcu=msp430x5438. > > > > Any ideas? > > Try a newer toolchain. 3.2.3 is old, and likely uses outdates binutils. -> > http://mspgcc4.sourceforge.net/ > >
As far as I have understood it right, mspgcc does not yet offer real support for msp430x, although there is a branch for msp430x support for test use and it has been recently discussed on this mailing list. My suggestions(untested) are: Try to compile mspgcc with msp430x support following the wiki instructions: http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Linux_installation_%28MSP430X%29 Or, which might effectively work in case you have large constant data stored in flash: Order the linker to put the data to a specified location, see http://mspgcc.sourceforge.net/faq/x71.html use 32-pointers to access the memory: unsigned long int pointer; asm("dint"); asm("nop"); asm("mova &pointer, r15"); asm("movx #0, @r15"); asm("eint"); No guarantees on these, as said, I have not tested them, they are just something I have thought of in case I need to use over 64k memory. > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users >
