This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR4133: CCS 12.7.1版本,最简单的范例程序编译错误

Part Number: MSP430FR4133

选择芯片为MSP430FR4133,新建一个工程TEST,其目录为MSP430,里面就一个main.c文件,内容为:

#include <msp430.h>


/**
* main.c
*/
int main(void)
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer

return 0;
}

编译后出现以下错误,

Building file: "../main.c"
subdir_rules.mk:9: recipe for target 'main.obj' failed
gmake: *** [main.obj] Error -1073741511
gmake: Target 'all' not remade because of errors.

没有搜索到同样的问题,也试过把包含文件改为#include <msp430fr4133.h>,现象还是一样的。

  • 解决了,原因是我把CCS的安装文件放到一个中文目录里面了,安装时没注意提示,安装是安装好了,就是项目运行编译时才出问题。