Summary: While auditioning an A/B test between the compiler settings; I found that the project would become unbuildable after reverting back to the original compiler. How do I repair the project?
Target device ( fet/target hardware not necessary to reproduce ) : cc430f6137
To reproduce every time:
1) Build a new project targeting cc430f6137 with the blink led template; this will build normally - and even produce a running eval board.
2) Change compilers from Project Properties->General['Advanced Settings']tab->Compiler Version drop down from 'TI v4.3.5' to 'GNU v4.9.1'
3) rebuild project.
4) Return original compiler from Project Properties->General['Advanced Settings']tab->Compiler Version from GNU v4.9. to 'TI v4.3.5'
5) rebuild project - only to find that the linker fails with the following:
**** Build of configuration Debug__GNU__TI for project to_repro0 ****
"D:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building target: to_repro0.out'
'Invoking: MSP430 Linker'
"D:/ti/ccsv6/tools/compiler/msp430_4.3.5/bin/cl430" -vmspx --abi=eabi --advice:power=all -g --define=__CC430F6137__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU18 --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal -z -m"to_repro0.map" --heap_size=80 --stack_size=80 --use_hw_mpy=F5 --cinit_hold_wdt=on -i"D:/ti/ccsv6/ccs_base/msp430/include" -i"D:/ti/ccsv6/tools/compiler/msp430_4.3.5/lib" -i"D:/ti/ccsv6/tools/compiler/msp430_4.3.5/include" -i"D:/ti/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="to_repro0_linkInfo.xml" --rom_model -o "to_repro0.out" "./blink.obj" -l"libc.a" -l"libmath.a"
<Linking>
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changes using LPMx or _bis_SR_register() or __low_power_mode_x() in this project.
warning #10247-D: creating output section ".stack" without a SECTIONS specification
remark #10372-D: (ULP 4.1) Detected uninitialized Port A in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
undefined first referenced
symbol in file
--------- ----------------
remark #10372-D: (ULP 4.1) Detected uninitialized Port B in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
PADIR_L ./blink.obj
remark #10372-D: (ULP 4.1) Detected uninitialized Port C in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
PAOUT_L ./blink.obj
WDTCTL ./blink.obj
>> Compilation failure
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "to_repro0.out" not built
gmake: *** [to_repro0.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****