从 Contiki 端口编译示例代码时 Thingsquare Mist对于 EXP430 board 上的 MSP430我明白了
/usr/lib/gcc/msp430/4.5.3/../../../../msp430/bin/ld: hello-world.exp5438 section `.text' will not fit in region `rom'
/usr/lib/gcc/msp430/4.5.3/../../../../msp430/bin/ld: section .vectors loaded at [0000ff80,0000ffff] overlaps section .text loaded at [00005c00,000106df]
/usr/lib/gcc/msp430/4.5.3/../../../../msp430/bin/ld: region `rom' overflowed by 2090 bytes collect2: ld returned 1 exit status
rm hello-world.co obj_exp5438/contiki-exp5438-main.o Process returned error code 2 make: *** [hello-world.exp5438] Error 1
blink
示例也会发生这种情况,溢出的字节数甚至更多。如何设置优化或删除未使用的组件以便我可以开始使用基本示例?
最佳答案
通常平台的配置是在以下位置完成的:
contiki/platform/econotag/contiki-conf.h
(将 econotag 替换为您的目标)
那里有很多设置可以启用或禁用。
至于使您的示例正常工作的具体配置...我不知道,因为我对该平台没有任何经验。 (或丰富的 Mist 经验)。
关于msp430 - 最小化 Contiki-OS 中的代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15875909/