Hi folks,

I'm brand new to mspgcc, and just thought I'd pass along a hiccup I encountered
while switching from the IAR environment to mspgcc.

We have a somewhat large (for a microcontroller) project that I have recently
moved from the IAR/Windows world to mspgcc/Linux (the uC now has to talk
to a linux embedded PC, so why not stick to Linux all the way? It was a good 
time
to try this stuff).

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.

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.


Reply via email to