On Fri, 2011-09-16 at 22:06 -0400, Alessandro Triglia wrote:
> Then I tried to debug the program using msp430-gdb (with "target sim"
> followed by "load" and "file") but the debugger crashes as soon as I give
> the "start" command.  I also tried with mspsim, but it returns an error that

Try looking at the resulting elf image, with a command like this:
msp430-objdump -h build\x4.firmware

Check against the model-specific datasheet that all sections begin at
the right address.

I have no experience with mspsim, but I know that mspdebug "sim" target
is not perfect. Some things may happen differently that the real
hardware, causing your program to crash.

Also try using "step" directly from mspdebug, because it steps at asm
instruction level. Probably you'll be able to see what causes it to
crash.

Radu Rendec



------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to