Hi Naveen,

On Monday 26 February 2007 00:33, Naveen Madabhushi wrote:
> I have an MSP 430 USB Debugger interface (MSP-FET430UIF). I have made a
> small interface board such that it can be connected to the JTAG pins of
> TMote. Can anyone give me some pointers as to how to use this Debugger? I
> am using IAR Embedded Workbench IDE and would want to see if i can write a
> small piece of code in this and test TMote.

You can select from the IAR workbench which chip your are building code for.  
The TMote's use the msp430f1611.  You can get all kinds of sample code from 
TI's web site, http://www.ti.com/msp430.  Debugging IAR code using the 
workbench, the FET and a proper JTAG connector should be pretty seamless, I'd 
think.

Since you are asking this question on the tinyos-help list, I presume what you 
ultimately want to do is to debug a TinyOS program using the IAR workbench 
and the TI USB FET.  IMHO, this isn't worth trying.  Here's the hurdles, 
AFAIK:

 * IAR and gcc compilers don't share a common debug symbol format, so you have 
to compile the TinyOS generated C code using IAR.

 * IAR and gcc have incompatible C syntaxes (such as defining a function as an 
ISR), so you have to hand modify the TinyOS generated C code.

 * Debugging TinyOS code really means debugging the C code generated from the 
TinyOS code; you lose all of the TinyOS semantics and instead see their 
implementation.

Another avenue you could pursue is using the msp430's gdb debugger.  I've seen 
comments on the msp430gcc mailling list indicating that some people have been 
able to debug mspgcc compiled code using the USB FET.  It doesn't appear this 
facility is very mature yet, and you still are debugging at the C level.

Good luck,
Steve
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to