我想在 Wismote 上测试一个 cfs Contiki 的例子。我在这里使用了示例: 咖啡文件系统示例
这个例子在天空微尘上运行良好。当我想在 Wismote 上实现时,我将目标更改为 Wismote,这里是 makefile:
CONTIKI_PROJECT = [project_name]
all: $(CONTIKI_PROJECT)
#UIP_CONF_IPV6=1
CONTIKI_WITH_RIME = 1 CFLAGS =-DUIP_CONF_IPV6
MODULES += core/net/ipv6/multicast
ifeq ($(TARGET),avr-raven)
COFFEE_FILES = 4
endif
CONTIKI =../../../
include $(CONTIKI)/Makefile.include
编译后,我收到此错误消息:
/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: cfstest.wismote section
.data' will not fit in region
rom' /usr/local /msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld:在 [0000ff80,0000ffff] 加载的部分 .vectors 与部分 .data 重叠在 [0000fe82,0000ff81] /usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld 加载:区域rom' overflowed by 2 bytes contiki-wismote.a(cfs-coffee.o): In function
cfs_coffee_get_protected_mem' :/home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369:未定义对xmem_pread' /home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: undefined reference to
xmem_pread的引用'/home/user/contiki/examples/ mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: 未定义对xmem_pwrite' /home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: undefined reference to
xmem_erase' /home/user/contiki/examples/mySim/Dscv/../../ 的引用..//core/cfs/cfs-coffee.c:1369:未定义的引用xmem_pread' /home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: undefined reference to
xmem_pread'/home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369:未定义对xmem_pread' /home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: undefined reference to
xmem_pread'/home/user/contiki/examples 的引用/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: 未定义对xmem_pwrite' /home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: undefined reference to
xmem_pread 的引用'/home/user/contiki/examples/mySim/Dscv/../.. /..//core/cfs/cfs-coffee.c:1369:未定义对xmem_pread' /home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: undefined reference to
xmem_pwrite 的引用'/home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs -coffee.c:1369: 未定义对xmem_pwrite' /home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: undefined reference to
xmem_pwrite'/ home/user/contiki/examples/mySim/Dscv/../../..//core/cfs/cfs-coffee.c:1369: 未定义引用`xmem_pwrite' collect2: error: ld returned 1 exit status rm cfstest.co obj_wismote/contiki-wismote-main.o make: *** [cfstest.wismote] 错误 1 进程返回错误代码 2
我检查了 core/cfs/cfs-coffee.c 以查看第 1369 行中的代码,但正如您在cfs-coffee.c中看到的那样,没有这样的行。有没有人有任何想法来解决这个问题?