Thingsquare Mist(Contiki-OS)中缺少platform-conf.h [英] Missing platform-conf.h in Thingsquare Mist (Contiki-OS)
问题描述
我克隆了 Contiki-OS 端口
I cloned the Contiki-OS port Thingsquare mist to work with Texas Instruments EXP430 board. When I run Hello World
from the respective folder
make TARGET=mist-exp5438
我收到platform-conf.h
丢失的错误:
In file included from ../../contiki/core/./net/rime/rimeaddr.h:57:0,
from ../../contiki/core/net/rime/rimeaddr.c:45:
../../platform/mist-exp5438/./contiki-conf.h:36:27: fatal error: platform-conf.h: No such file or directory
compilation terminated.
有人知道如何编写platform-conf.h
文件吗?尝试仅在../../platform/mist-exp54388
中添加一个空文件会使查找文件成功,但是会产生很多错误.
Does anyone know how to write a platform-conf.h
file? Trying to just add an empty file in the ../../platform/mist-exp54388
makes finding the file successful, but yields a lot of errors.
推荐答案
这是因为exp5438并不是真正的平台.该平台是CC1101或CC1120,这是带有CC1101或CC1120模块的EXP5438板.当您查看exp1101和exp1120目录时,会发现platform-conf.h文件.
That's because exp5438 is not really a platform. The platform is either CC1101 or CC1120, which is a EXP5438 board with CC1101 or CC1120 modules. When you look into the exp1101 and exp1120 directories you will find platform-conf.h files.
make TARGET=exp1120
似乎可以编译代码.不幸的是,编译后的代码似乎太大或什么,我从链接器中收到了hello-world.exp1120 section '.text' will not fit in region 'rom'
错误.
seems to makes the code compile. Unfortunately the compiled code seems to be too big or something, I get a hello-world.exp1120 section '.text' will not fit in region 'rom'
error from the linker.
但是,其他平台似乎编译良好,我尝试使用CodeSourcery工具链为CC2538DK进行编译,但没有收到任何错误.但是我也没有CC2538DK.
But well, other platforms seem to compile fine, I tried compiling for CC2538DK with the CodeSourcery toolchain and I don't get any errors. But I also don't have a CC2538DK.
这篇关于Thingsquare Mist(Contiki-OS)中缺少platform-conf.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!