Tamas, currently I am using a version of mspgcc that I build from the CVS sources, because there was a bug with debugging of msp430x44x devices, which has been fixed in CVS but not released since now.
But I cross checked, this released version (2008-12-30) does the job. http://downloads.sourceforge.net/mspgcc/mspgcc-20081230.exe?use_mirror=mesh If you like to use a visual source level debugger and a very good IDE, try this: http://matthias-hartmann.blogspot.com/ Good luck! Matthias [email protected] schrieb: > Matthias, > > First of all, thank you for taking your time to help! > > I tried specifying the target mcu as you said: > msp430-gcc -mmcu=msp430x2013 -Os -g -C99 -o main.elf main.c CC1100-CC2500.c > TI_CC_spi.c > > and I got this error: > Known MCU names: > msp1 > msp2 > msp430x110 > msp430x112 > .... ..... .... .... > msp430x2101 > msp430x2111 > msp430x2121 > msp430x2131 > msp430x311 > msp430x312 > ..... ..... .... > ..... ..... .... > > /tmp/cclxRjU8.s: Assembler messages: > /tmp/cclxRjU8.s:2: Fatal error: unknown MCU: msp430x2013 > > It seems my msp430-gcc does not support the msp430x2013 target. I wonder > which version you have? Here are some details of my compiler and target: > > msp430-gcc -dumpmachine > msp430 > msp430-gcc -dumpversion > 3.2.3 > > Tamas > > > -- Eredeti üzenet -- > Feladó: Matthias Hartmann <[email protected]> > Címzett: GCC for MSP430 - http://mspgcc.sf.net > <[email protected]> > Elküldve: 2009. március 1. 14:34 > Tárgy : Re: [Mspgcc-users] section .data [0000fc00 -> 0000fc01] overlaps > section .text > > > Tamas, > > you are really close to success. > > Add the > -mmcu=msp430x2013 > switch to compiler and linker command lines. > > If you don't specify a -mmcu switch, it defaults to msp430x110 which has > to few flash for the code to fit in. > > You may ignore the extern warning, or just remove the extern keyword > from lines 104+105 of CC1100-CC2500.c. > char paTable[] = {0x51}; > char paTableLen = 1; > Because on these tho lines, the variables are defined and declaring > variables as extern on the lines they are defined does not make sense to me. > > I declared the > ISRs as > interrupt (PORT1_VECTOR) port1_ISR (void) > interrupt (PORT1_VECTOR) port2_ISR (void) > > the main as > int main (void) > and put a while after the _BIS_SR ... > _BIS_SR(LPM3_bits + GIE); // Enter LPM3, enable > interrupts > while(1) {}; > just to get rid of some warnings ... > > After above changes, one warning resides: > subscript has type `char' in TI_CC_spi.c line 267, which may be ignored > here. > description: http://wiki.netbsd.se/GCC_warnings_explained > > Good luck! > > Matthias > > > Tamas schrieb: > >> Hi, >> >> I have just started dealing with the msp430, and I would like to ask some >> help. >> http://focus.ti.com/mcu/docs/mcusupporttechdocsc.tsp?sectionId=96&tabId=1502&abstractName=slaa325 >> I am trying to port the above IAR msp430 - cc1100 interfacing code >> library (and simple example) to MSPGCC, but I cant get rid of this >> error: >> >> CC1100-CC2500.c:105: warning: `paTable' initialized and declared `extern' >> CC1100-CC2500.c:106: warning: `paTableLen' initialized and declared `extern' >> msp430-ld: region text is full (main.elf section .text) >> msp430-ld: region text is full (main.elf section .text) >> msp430-ld: section .data [0000fc00 -> 0000fc01] overlaps section .text >> [0000fc00 -> 00010103] >> >> The command I issue: >> msp430-gcc -Os -g -C99 -o main.elf main.c CC1100-CC2500.c TI_CC_spi.c >> >> The target mcu is the MSP430F2013 with 2kB+256B Flash and 128B RAM. >> All I have done so far: changed the syntax of the interrupt routine >> according to the content of the isr_compat.h: ISR(PORT1,sw_int) { }, >> amended the mcu header to msp430x20x3.h in the >> TI_CC_msp430.h file, and reduced the number of switches and LEDs since >> the F2013 has only 10 I/Os. I included these files in the main.c: >> #include >> #include >> #include >> >> Does anyone have any idea how to solve this? >> I would really appreciate the help I get! >> >> Cheers, >> Tamas >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >> -Strategies to boost innovation and cut costs with open source participation >> -Receive a $600 discount off the registration fee with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Mspgcc-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mspgcc-users >> >> >> >> >> > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > > --------------------------Hirdetés----------------------------- > > > > Mostantól könnyebb átköltözni az Indamailbe! > > Az ismerőseid listáját pár kattintással áthozhatod. > > 2 GB tárhely, testreszabható működés és megjelenés. > > Indamail. > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users >
