The CVS examples are for a different generation of chips than your
RF2560T/MSP430BT5190, and the UART hardware is completely different.
You would be better off using the MSP430F5438A examples from
http://www.ti.com/product/msp430f5438A#toolssoftware.  You will have
to convert the interrupt syntax to mspgcc's function attribute form;
see the list archives or the test430 package for examples.

There is also basic UART transmit code for the MSP430F5438A in the
support/exp430f5438 directory of test430.  See
http://mspgcc.git.sourceforge.net/git/gitweb.cgi?p=mspgcc/test430;a=tree;f=support/exp430f5438;h=c2fed089c1187dbbf0cb63130045ebc77468c917;hb=HEAD
for now; a new release should be out in a couple days.

Peter

On Sat, Dec 24, 2011 at 1:11 AM, priyasheel prasad
<priyasheel1...@gmail.com> wrote:
> Presently I am experimenting with the UART using mspgcc and a TI
> ez430-rf2560 kit. I noticed that there were some UART example programs
> in the CVS tree for mspgcc. And so I downloaded the examples:
>
> # checkout examples from CVS
> cvs -z3 -d:pserver:anonym...@mspgcc.cvs.sourceforge.net:/cvsroot/mspgcc
> co examples
>
> I found that if I edited the Makefile in the examples/leds directory
> to change the CPU from msp430z1101 to msp430f5438a the compile is
> successful. Using "mspdebug rf2500" I can load the leds.elf file to my
> microcontroller and the LEDs blink.
>
> However, if I try the same procedure with the uart_test example I
> receive a large number of compile errors:
>
> main.c: In function ‘main’:
> main.c:61:5: error: ‘IE1’ undeclared (first use in this function)
> main.c:61:5: note: each undeclared identifier is reported only once
> for each function it appears in
> main.c:62:5: error: ‘IE2’ undeclared (first use in this function)
> main.c:63:5: error: ‘ME1’ undeclared (first use in this function)
> [...]
>
> Moreover I notice the unmodified code produces a compile error as well:
>
> main.c:86:14: error: ‘SSEL_SMCLK’ undeclared (first use in this function)
>
> How can I go about debugging this code for my particular processor?
> Does anyone else have some experience porting these examples to
> different development kits like the ez430-rf2560?
>
> Thank you in advance.
>
> Best,
> Priyasheel
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to