TI中文支持网
TI专业的中文技术问题搜集分享网站

MSP430F4152使用CCS6编译错误

1,使用的处理器MSP430F4152 ;

2,编译器 CCS版本: Version: 6.2.0.00050 

3,编译器:TI V15.12.3.LTS,使用GNU V6.2.1.6也试过,无法正确识别中断__interrupte标识符,提示错误:

  __interrupt void USCIA0RX_ISR (void)

Description Resource Path Location Type
expected '=', ',', ';', 'asm' or '__attribute__' before 'void' atchannel.c /lcdtest line 34 C/C++ Problem

4,编译错误信息如下:

**** Build of configuration Debug__TI for project lcdtest ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all'Building target: lcdtest.out'
'Invoking: MSP430 Linker'
"C:/ti/ccsv6/tools/compiler/msp430_15.12.3.LTS/bin/cl430" -vmsp –use_hw_mpy=none –advice:power=all -g –define=__MSP430F4152__ –diag_warning=225 –diag_wrap=off –display_error_number –silicon_errata=CPU19 –printf_support=minimal -z -m"lcdtest.map" –stack_size=80 –heap_size=80 -i"C:/ti/ccsv6/ccs_base/msp430/include" -i"C:/ti/ccsv6/tools/compiler/msp430_15.12.3.LTS/lib" -i"C:/ti/ccsv6/tools/compiler/msp430_15.12.3.LTS/include" –reread_libs –warn_sections –display_error_number –diag_wrap=off –xml_link_info="lcdtest_linkInfo.xml" –use_hw_mpy=none –rom_model -o "lcdtest.out" "./atchannel.obj" "./delay.obj" "./lcd.obj" "./main.obj" "../lnk_msp430f4152.cmd" -llibc.a<Linking>
"../lnk_msp430f4152.cmd", line 98: error #10099-D:program will not fit into available memory. run placement with alignment fails for section ".cio" size 0x120 . Available memory ranges:
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions
RAM size: 0x200 unused: 0x1e max hole: 0x1cremark #10372-D: (ULP 4.1) Detected uninitialized Port 1 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 7 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

>> Compilation failure
makefile:143: recipe for target 'lcdtest.out' failed
"../lnk_msp430f4152.cmd", line 90: error #10099-D:program will not fit into available memory. run placement with alignment fails for section ".data" size 0x112 . Available memory ranges:
RAM size: 0x200 unused: 0x1e max hole: 0x1cerror #10010: errors encountered during linking; "lcdtest.out" not built
gmake: *** [lcdtest.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

5,map文件,见附件;

HG:

void __attribute__ ((interrupt(USCIAB0RX_VECTOR))) USCIA0RX_ISR (void)

changgang gao:

回复 HG:

多谢回复。

赞(0)
未经允许不得转载:TI中文支持网 » MSP430F4152使用CCS6编译错误
分享到: 更多 (0)