Hi, I recently started using Code Composer 4.2 for the first time. I'm running it under Windows 7, targeting the MSP430F2274. After two weeks of frustration I'm not making much progress. This post is the first for several issues.
Issue: Printf won't work. It seems to crash the linker:
<Linking>
"../lnk_msp430f2274.cmd", line 75: error: run placement fails for object
".stack", size 0x200 (page 0). Available ranges:
RAM size: 0x400 unused: 0xac max hole: 0xac
"../lnk_msp430f2274.cmd", line 80: error: run placement fails for object
".cio", size 0x120 (page 0). Available ranges:
RAM size: 0x400 unused: 0xac max hole: 0xac
error: errors encountered during linking; "APA-TX_firmware.out" not built
>> Compilation failure
gmake: *** [APA-TX_firmware.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project APA-TX_firmware
sprintf only works with ints and no other variable types. It does work when I cast an unsigned long as an int and print as an int (%d). For example, sprintf'ing using %c, %u, %ld, %lu and other format specifiers doesn't work (either prints nothing or prints "0").
I'm using stdio.h. I've set the compiler switch for printf to maximum support. It seems that perhaps printf is hogging too many resources for the MSP430 like too much RAM and/or too much stack space. printf does work with the IAR compiler. Any suggestions other than switching to IAR? Thanks,
- Chris