简体   繁体   English

使用IAR在MSP430上移植contiki

[英]Porting contiki on MSP430 using IAR

I am using a MSP-EXP430F5438 board and was trying to port contiki on it using the source code(contiki 2.6) through IAR. 我正在使用MSP-EXP430F5438板,并尝试通过IAR使用源代码(contiki 2.6)在其上移植contiki。

I am getting the following errors- 我收到以下错误-

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

Do you think a header file might be missing in the source code? 您是否认为源代码中可能缺少头文件?

Regards 问候

To run contiki in IAR there are few steps require: (i) you need to have the license for IAR (TI platform specific radio) that you are using. 要在IAR中运行contiki,需要执行以下步骤:(i)您需要拥有所使用的IAR(TI平台专用无线电)的许可证。 However you can download it from IAR website for msp430 (size or time limited), (ii). 但是,您可以从IAR网站上以msp430(大小或时间限制)下载它,(ii)。 Have to find an equivalent function in the IAR toolchain libraries for example . 例如,必须在IAR工具链库中找到等效功能。 Write your own clean function that performs the same purpose as the original library routine. 编写自己的clean函数,该函数执行与原始库例程相同的目的。 (iii) Edit (Makefile.common) the platform specific makefile for example inside contiki/platform/sky Makefile.common have a look into line 17. I am assuming that you are using windows platform as IAR does n't support Linux distributions (ex. Ubuntu). (iii)编辑(Makefile.common)特定于平台的makefile,例如contiki / platform / sky Makefile.common,进入第17行。我假设您使用的是Windows平台,因为IAR不支持Linux发行版(例如Ubuntu)。 (IV) special care for some c files such as (ip64.c from apps/ip64 uip-icmp6.c from core/net and uip-nd6.c) compiler 'll arise some error you must need to know which function to enable and disable depending on your applications. (IV)特别注意某些c文件,例如(apps / ip64.ip64.c / core / net的uip-icmp6.c和uip-nd6.c)编译器会出现一些错误,您必须知道要启用哪个功能并根据您的应用程序禁用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM