iar编译430问题

2019-03-24 12:40发布

一个简单的P1口中断例程,编译时出现如下错误,请问这是我哪里设置的不对还是少了那个头文件,还是其他什么问题,求大神指教


Error[Pe020]: identifier "SCG0" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 46
Error[Pe020]: identifier "uint16_t" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 50
Error[Pe020]: identifier "UCSCTL0" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 51
Error[Pe020]: identifier "UCSCTL1" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 52
Error[Pe020]: identifier "DCORSEL_4" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 52
Error[Pe020]: identifier "UCSCTL2" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 54
Error[Pe020]: identifier "MSP430_CPU_SPEED" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 54
Error[Pe020]: identifier "UCSCTL4" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 55
Warning[Pe223]: function "__bic_SR_register" declared implicitly E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 58
Error[Pe020]: identifier "P1IE" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 132
Error[Pe020]: identifier "P2IE" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 133
Error[Pe020]: identifier "MSP430_REQUIRE_LPM1" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 151
Error[Pe020]: identifier "MSP430_REQUIRE_LPM1" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 159
Warning[Pe223]: function "dint" declared implicitly E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 167
Warning[Pe223]: function "eint" declared implicitly E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 172
Warning[Pe223]: function "__get_SR_register" declared implicitly E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 221
Warning[Pe223]: function "__bic_SR_register" declared implicitly E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 222
Error[Pe020]: identifier "GIE" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 222
Warning[Ta031]: When defining __low_level_init the header file 'intrinsics.h' should  E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 231
have been included
Error[Pe020]: identifier "WDTCTL" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 234
Error[Pe020]: identifier "WDTPW" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 234
Error[Pe020]: identifier "WDTHOLD" is undefined E:msp430中断新建文件夹contiki-2.6cpumsp430f5xxxmsp430.c 234
Error while running C/C++ compiler
wismote_simple_main.c  
Warning[Pa050]: non-native end of line sequence detected (this diagnostic is only  E:msp430中断新建文件夹contiki-2.6coresysautostart.h 1
issued once)
Warning[Pe223]: function "button_init" declared implicitly E:msp430中断新建文件夹contiki-2.6platformwismotewismote_simple_main.c 71

Total number of errors: 16
Total number of warnings: 10 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
5条回答
kingheimer
2019-03-24 20:25
 精彩回答 2  元偷偷看……0人看过

一周热门 更多>

相关问题

    相关文章