cl...@nc.rr.com wrote:

[...]
I had a global variable that got updated by an interrupt service routine, and 
should
have declared it as a "volatile" type. I didn't and got away with it in IAR, but not with mspgcc.

I guess you were using IAR 1.2x. IAR 2.x would probably have broken your code too, as it seems to optimise these things somewehat better. GCC gets quite agressive about these things, so you'd better get your volatiles right :-). I think we all get pretty sloppy about this at times.

My fault, I realize, but it tripped me up for a while. The read of the actual 
global
got optimized out in the loop that was looking for it to change with mspgcc.

After that, everything works. Thanks, guys for a cool new way to do msp430 
stuff.

Mike.
ps. Still having some troubles with gdbproxy/gdb/ddd - but much of that could be operator error.

ps2: I have a cheat-sheet of things I did to build, install, and convert to 
mspgcc
on Linux (Redhat 9). If there's interest, I could post it.
This might be interesting to see. It might raise a few points that should go into the documentation.

Regards,
Steve



Reply via email to