打印

我装了CCSv5.1,但是调试430Gxx的demo时候有一些问题。

[复制链接]
2298|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
本帖最后由 chrishardy 于 2012-6-21 19:44 编辑

有图有真相吧,上两张图,给大家看看。这个就是很流行的GRACE 我编译就是通过不了,报告我少库文件什么的。目前还不知道咋整……不过如果TI做事情有时候挺绝的,高版本的软件不能自动的兼容低版本。有时候不得不会到CCSv3开发。


我把这个工程的界面发上来,这个是我像编译以让LED闪烁的程序。


代码:
//***************************************************************************************
//  MSP430 Blink the LED Demo - Software Toggle P2.6
//
//  Description; Toggle P1.0 by xor'ing P1.0 inside of a software loop.
//  ACLK = n/a, MCLK = SMCLK = default DCO
//
//                MSP430x5xx
//             -----------------
//         /|\|              XIN|-
//          | |                 |
//          --|RST          XOUT|-
//            |                 |
//            |             P2.6|-->LED
//
//  chris hardy
//  July 2012
//  Built with Code Composer Studio v5
//***************************************************************************************

#include <msp430f5137.h>

int main(void) {

WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer

P2DIR |= BIT6; // Set P1.0 to output direction


for (;;) {

volatile unsigned int i; // volatile to prevent optimization


P2OUT ^= BIT6; // Toggle P1.0 using exclusive-OR


i = 10000; // SW Delay

do

i--;

while (i != 0);

}
}

希望大家多多帮忙!
我的Console窗口上的输出信息是:
**** Build of configuration Debug for project Demo ****

D:\ti\ccsv5\utils\bin\gmake -k all
'Building file: ../blink.c'
'Invoking: MSP430 Compiler'
"D:/ti/ccsv5/tools/compiler/msp430_4.1.0/bin/cl430" -vmspx --abi=eabi -g --include_path="D:/ti/ccsv5/ccs_base/msp430/include" --include_path="D:/ti/ccsv5/tools/compiler/msp430_4.1.0/include" --advice:power=all --define=__CC430F5137__ --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 --preproc_with_compile --preproc_dependency="blink.pp"  "../blink.c"
Command-line error: cannot open command file '\\0456416': No such file or directory
1 fatal error detected in this compilation.
Compilation terminated.

>> Compilation failure
gmake: *** [blink.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:那些执拗的人还没有能够改变世界,不过,世界也没能改变那些执拗的人。

2

主题

40

帖子

1

粉丝