2013-06-13 44 views
0

我正在使用MSP-EXP430F5438開發板,並嘗試通過IAR使用源代碼(contiki 2.6)在其上移植contiki。使用IAR在MSP430上移植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 

你覺得一個頭文件可能會在源代碼中會丟失?

問候

+0

如果將更多文件添加到IAR工作空間錯誤[e46]顯示 – Pratyush

回答

0

要在IAR運行半自助旅遊旅行社有幾個步驟需要:(i)您需要有您所使用的IAR許可證(TI平臺特定的無線電)。但是,您可以從IAR網站下載msp430(大小或時間限制),(ii)。例如,必須在IAR工具鏈庫中找到等效函數。編寫自己的乾淨的功能,執行與原始庫例程相同的用途。 (iii)編輯(Makefile.common)特定於平臺的makefile,例如在contiki/platform/sky內的Makefile.common中查看第17行。我假設您使用的是Windows平臺,因爲IAR不支持Linux發行版例如Ubuntu)。 (四)特別注意一些c文件,例如(ip64.c from apps/ip64 uip-icmp6.c from core/net和uip-nd6.c)編譯器會出現一些錯誤,您必須知道哪些函數可以啓用並根據您的應用程序禁用。