以前用CCSV5.4建立工程师都是直接写寄存器的,这次发现还有一个Grace功能,按照教材说的建立了一个新的Grace的工程,只是用它配置了看门狗定时器,编译时出现了下面两个错误,我以为是我的CCS的问题,我又建立一个新的工程,没有用Grace去设置寄存器,直接自己写的寄存器,编译时就没有啥问题,不知道有谁知道这是哪儿的问题啊,肯定是我的ccs设置的问题,我是这么认为的,TI的工程师们能指导一下不?
** Build of configuration Debug for project TEST1 ****
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k allmaking ../src/grace/grace.lib …
cle430 Grace_init.c …
"C:/ti/ccsv5/tools/compiler/msp430_4.1.5/bin/cl430" –abi=eabi -c –obj_directory=objs/ -vmsp –symdebug:dwarf –optimize_with_debug -qq -pdsw225 –advice:power=all -D__MSP430G2553__ -I "C:/ti/ccsv5/tools/compiler/msp430_4.1.5/include" -I "C:/ti/grace_2_10_00_78/packages" -I "C:/ti/ccsv5/ccs_base/msp430/include" "Grace_init.c"
are430 grace.lib objs/Grace_init.obj …
"C:/ti/ccsv5/tools/compiler/msp430_4.1.5/bin/ar430" rq grace.lib objs/Grace_init.obj objs/CSL_init.obj objs/GPIO_init.obj objs/BCSplus_init.obj objs/InterruptVectors_init.obj objs/System_init.obj objs/WDTplus_init.obj
'Building target: TEST1.out'
'Invoking: MSP430 Linker'
"C:/ti/ccsv5/tools/compiler/msp430_4.1.5/bin/cl430" -vmsp –abi=eabi -g –advice:power=all –define=__MSP430G2553__ –diag_warning=225 –display_error_number –diag_wrap=off –printf_support=minimal -z –stack_size=80 -m"TEST1.map" –heap_size=80 -i"C:/ti/ccsv5/ccs_base/msp430/include" -i"D:/workspace_v5_4/TEST1/src" -i"D:/workspace_v5_4/TEST1" -i"C:/ti/ccsv5/tools/compiler/msp430_4.1.5/lib" -i"C:/ti/ccsv5/tools/compiler/msp430_4.1.5/include" –reread_libs –warn_sections –display_error_number –diag_wrap=off –xml_link_info="TEST1_linkInfo.xml" –rom_model -o "TEST1.out" -l"./configPkg/linker.cmd" "./main.obj" -l"libc.a" "../lnk_msp430g2553.cmd"<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.
remark #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.
error #10008-D: cannot find file
"D:\workspace_v5_4\TEST1\Debug\configPkg\package\cfg\main_pe430.oe430"
"../lnk_msp430g2553.cmd", line 111: warning #10374-D: Interrupt vector "PORT1" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 112: warning #10374-D: Interrupt vector "PORT2" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 114: warning #10374-D: Interrupt vector "ADC10" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 115: warning #10374-D: Interrupt vector "USCIAB0TX" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 116: warning #10374-D: Interrupt vector "USCIAB0RX" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 117: warning #10374-D: Interrupt vector "TIMER0_A1" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 118: warning #10374-D: Interrupt vector "TIMER0_A0" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 119: warning #10374-D: Interrupt vector "WDT" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 120: warning #10374-D: Interrupt vector "COMPARATORA" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 121: warning #10374-D: Interrupt vector "TIMER1_A1" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 122: warning #10374-D: Interrupt vector "TIMER1_A0" does not have an interrupt handler routine.
"../lnk_msp430g2553.cmd", line 123: warning #10374-D: Interrupt vector "NMI" does not have an interrupt handler routine.
error #10010: errors encountered during linking; "TEST1.out" not built
remark #10372-D: (ULP 4.1) Detected uninitialized Port 2 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 3 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
>> Compilation failure
gmake: *** [TEST1.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
Dong Liang Fan:
怎么没人回答我啊???我的main.c就剩下《while(1);》了,怎么还是不行啊
#include <msp430G2553.h> main(void){ // Grace_init(); // Activate Grace-generated configuration // >>>>> Fill-in user code here <<<<< while(1);}
灰小子:
回复 Dong Liang Fan:
看编译信息里,有一个错误:
error #10008-D: cannot find file"D:\workspace_v5_4\TEST1\Debug\configPkg\package\cfg\main_pe430.oe430"
Grace的工程配置有问题,这个文件编译器没找到。
在ccs的help里有关于grace使用的介绍,楼主可以参考下。