我使用的是MSP-EXP430F5438板,并试图通过IAR使用源代码( contiki 2.6)将contiki移植到该板上。
我收到以下错误-
Error[Pe020]: identifier "CC2520_IRQ_VECTOR" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 50
Error[Pe661]: expected an integer constant E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 50
Error[Pe020]: identifier "DIR" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 67
Error[Pe020]: identifier "CC2520_CSN_PIN" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 67
Error[Pe137]: expression must be a modifiable lvalue E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 67
Error[Pe020]: identifier "CC2520_VREG_PIN" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 68
Error[Pe137]: expression must be a modifiable lvalue E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 68
Error[Pe020]: identifier "CC2520_RESET_PIN" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 69
Error[Pe137]: expression must be a modifiable lvalue E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 69
Error[Pe020]: identifier "CC2520_FIFOP_PIN" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 71
Error[Pe137]: expression must be a modifiable lvalue E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 71
Error[Pe020]: identifier "CC2520_FIFO_PIN" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 72
Error[Pe137]: expression must be a modifiable lvalue E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 72
Error[Pe020]: identifier "CC2520_CCA_PIN" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 73
Error[Pe137]: expression must be a modifiable lvalue E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 73
Error[Pe020]: identifier "CC2520_SFD_PIN" is undefined E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 74
Error[Pe137]: expression must be a modifiable lvalue E:\PS-1\contiki-2.6\cpu\msp430\cc2520-arch.c 74
Error while running C/C++ Compiler
Error[Pe020]: identifier "CC2520_FIFOP_IS_1" is undefined E:\PS-1\contiki-2.6\core\dev\cc2520.c 201
Fatal Error[Pe035]: #error directive: CC2520_CONF_SYMBOL_LOOP_COUNT needs to be set!!! E:\PS-1\contiki-2.6\core\dev\cc2520.c 361
Error while running C/C++ Compiler你认为源代码中可能缺少一个头文件吗?
问候
发布于 2013-07-18 01:29:29
要在IAR中运行contiki,有几个步骤需要:(i)您需要拥有您正在使用的IAR (TI平台特定无线电)的许可证。但是,您可以从msp430的IAR网站下载它(大小或时间限制),(ii)。例如,我必须在IAR工具链库中找到一个等效的函数。编写您自己的干净函数,该函数执行与原始库例程相同的目的。(iii)编辑( Makefile.common )特定于平台的生成文件,例如,在contiki/ platform /sky Makefile.common中查看第17行。我假设您使用的是windows平台,因为IAR不支持Linux发行版(例如。Ubuntu)。(IV)特别注意一些c文件,例如(来自apps/ip64的ip64.c、来自core/net的uip-icmp6.c和uip-nd6.c)编译器会出现一些错误你必须知道根据你的应用程序应该启用和禁用哪个函数。
https://stackoverflow.com/questions/17083005
复制相似问题