MSP430F5310, non-BIOS (bare-metal) project
Compiler 4.2.2
I have an issue where I get an error when COFF is selected and a different error when ELF is selected.
===========================
When set to COFF
---------------------------
warning #10204-D: could not resolve index library "libmath.a" to a compatible library
===========================
When set to EABI (I added a CR for readability)
---------------------------
"../lnk_msp430f5310.cmd", line 161: fatal error #16000: object files have incompatible formats
("C:/ti/ccsv5/tools/compiler/msp430_4.2.2/lib/rts430.lib<boot.obj>" = TI-COFF, "./Common/Adc/Adc.obj" = ELF)
===========================
This is my other recent post where COFF fixed the libmath.a issue. But, as you can see, it breaks something else.
http://e2e.ti.com/support/development_tools/compiler/f/343/t/377179.aspx
===========================
See other build settings below.
Jim
Compiler includes:
"${CCS_BASE_ROOT}/msp430/include"
"${PROJECT_LOC}"
"${PROJECT_LOC}\Src"
... Other user source paths here...
"${MSP430WARE_DLIB}"
"${CG_TOOL_ROOT}/include"
"${CCS_BASE_ROOT}\msp430\lib"
Linker includes:
"libmath.a"
"libc.a"
"${CCS_BASE_ROOT}/msp430/include"
"${CG_TOOL_ROOT}/lib"
"${CG_TOOL_ROOT}/include"
"${CCS_BASE_ROOT}/msp430/lib"
Cmd file excerpt:
SECTIONS
{
.bss : {} > RAM /* GLOBAL & STATIC VARS */
.data : {} > RAM /* GLOBAL & STATIC VARS */
.sysmem : {} > RAM /* DYNAMIC MEMORY ALLOCATION AREA */
.stack : {} > RAM (HIGH) /* SOFTWARE SYSTEM STACK */
.boot > 0x8000
{
-l rts430.lib<boot.obj > (.text)
}
GROUP
{
.text : {} /* CODE */
.cinit : {} /* INITIALIZATION TABLES */
.const : {} /* CONSTANT DATA */
.pinit : {} /* C++ CONSTRUCTOR TABLES */
.init_array : {} /* C++ CONSTRUCTOR TABLES */
.mspabi.exidx : {} /* C++ CONSTRUCTOR TABLES */
.mspabi.extab : {} /* C++ CONSTRUCTOR TABLES */
} load = FLASH
/*---[RUN FROM RAM]----------------------------------------*/
RAMVECT_SEG : load = FLASH, run = RAM_VECTORS, table(_ramvector)
.ovly : {} > FLASH
/*---------------------------------------------------------*/