Other Parts Discussed in Thread: MSP430F5338
I've been debugging successfully for some time, and now Code Composer fails to bring me to main() when I debug.
It has something to do with code size because I can debug one code snapshot. But adding one line of code
signed short int any_var = 50;
leaves me in some debug limbo when I try to debug. If I suspend, I'm in memcpy() or auto_init(). I never get to main().
Debug view while waiting for main()
Debug view while suspended
Environment:
CCS 5.1.0.09000, licensed
MSP-FET430UIF to MSP430F5338 devkit
large data memory model (required by driverlib.lib)
without that extra initialization code, the link map and Debug Console are as follows
link map:
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
...
RAM 00002400 00004000 0000096c 00003694 RWIX
FLASH 00008000 00007f80 00005d82 000021fe RWIX
Debug console:
MSP430: Program loaded. Code Size - Text: 20122 bytes Data: 3826 bytes
after adding one line of code, I can't debug:
link map:
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
...
RAM 00002400 00004000 0000096e 00003692 RWIX
FLASH 00008000 00007f80 00005d8a 000021f6 RWIX
Debug console:
MSP430: Program loaded. Code Size - Text: 20122 bytes Data: 3834 bytes
There's lots of unused RAM and FLASH. What threshold am I crossing? How do I know?
Thanks for any assistance.
Rich