Tamas,
you may get rid of the last warning, by casting the char to an unsigned int
U1TXBUF = buffer[ (short unsigned int) i ]; //
Send data
Matthias Hartmann schrieb:
> 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 <isr_compat.h>
>> #include <signal.h>
>> #include <msp430x20x3.h>
>>
>> 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
>>
>>
>>
>>
>>
>
>