Compiler errors 使用IAR在MSP430上移植contiki
我正在使用MSP-EXP430F5438板,并试图通过IAR使用源代码(contiki 2.6)在其上移植contiki 我得到以下错误-Compiler errors 使用IAR在MSP430上移植contiki,compiler-errors,porting,msp430,iar,contiki,Compiler Errors,Porting,Msp430,Iar,Contiki,我正在使用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
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
您认为源代码中可能缺少头文件吗
关于要在IAR中运行contiki,有几个步骤需要:(i)您需要拥有您正在使用的IAR(TI平台专用无线电)的许可证。不过,您可以从IAR网站下载msp430(大小或时间限制),(ii)。例如,必须在IAR工具链库中找到等效函数。编写自己的clean函数,该函数执行与原始库例程相同的功能。(iii)编辑(Makefile.common)特定于平台的Makefile,例如在contiki/platform/sky Makefile.common中查看第17行。我假设您使用的是windows平台,因为IAR不支持Linux发行版(例如Ubuntu)。(四) 特别注意一些c文件,例如(apps中的ip64.c/core/net中的ip64 uip-icmp6.c和uip-nd6.c)编译器会出现一些错误,您必须知道根据应用程序启用和禁用哪个函数 如果将更多文件添加到IAR工作区,则会显示错误[e46]