该部分将不适合区域 "rom"。

问题描述 投票:0回答:1

我已经用git克隆了最新的contiki-master。现在我需要打印来自 sicslowpan.c. 如果 #define DEBUG DEBUG_NONE 仿真工作,但如果我将 #define DEBUG DEBUG_PRINTsicslowpan.c 我得到以下错误,即使是 hello-world.c 天空飞鸟上。我没有碰过任何其他的文件.如何才能消除这个错误?

/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: hello-world.sky section `.rodata' will not fit in region `rom'
/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: section .vectors loaded at [0000ffe0,0000ffff] overlaps section .rodata loaded at [0000f590,000100b0]
/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: region `rom' overflowed by 456 bytes
/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/mmpy-16/libcrt0.a(_copy_data.o): In function `__do_copy_data':
/home/user/building-mspgcc/gcc-4.7.0-msp430/msp430/mmpy-16/libgcc/../../../../gcc-4.7.0/libgcc/config/msp430/crt0.S:208:(.init4+0x12): relocation truncated to fit: R_MSP430_16_BYTE against symbol `__data_load_start' defined in *ABS* section in hello-world.sky
obj_sky/contiki-sky-main.o: In function `main':
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:302:(.init9+0x176): relocation truncated to fit: R_MSP430_16 against symbol `contikimac_driver' defined in .rodata section in contiki-sky.a(contikimac.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:303:(.init9+0x17a): relocation truncated to fit: R_MSP430_16 against symbol `csma_driver' defined in .rodata section in contiki-sky.a(csma.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:304:(.init9+0x17e): relocation truncated to fit: R_MSP430_16 against symbol `nullsec_driver' defined in .rodata section in contiki-sky.a(nullsec.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:307:(.init9+0x186): relocation truncated to fit: R_MSP430_16 against symbol `contikimac_driver' defined in .rodata section in contiki-sky.a(contikimac.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:307:(.init9+0x1b4): relocation truncated to fit: R_MSP430_16 against symbol `contikimac_driver' defined in .rodata section in contiki-sky.a(contikimac.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:307:(.init9+0x1b8): relocation truncated to fit: R_MSP430_16 against symbol `csma_driver' defined in .rodata section in contiki-sky.a(csma.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:307:(.init9+0x1bc): relocation truncated to fit: R_MSP430_16 against symbol `nullsec_driver' defined in .rodata section in contiki-sky.a(nullsec.o)
contiki-sky.a(cc2420.o): In function `cc2420_init':
/home/user/contiki/examples/hello-world/../../dev/cc2420/cc2420.c:635:(.text.process_thread_cc2420_process+0x3c): relocation truncated to fit: R_MSP430_16 against symbol `contikimac_driver' defined in .rodata section in contiki-sky.a(contikimac.o)
Process returned error code 2
contiki-sky.a(sicslowpan.o): In function `sicslowpan_get_last_rssi':
/home/user/contiki/examples/hello-world/../../core/net/ipv6/sicslowpan.c:1797:(.text.send_packet+0x12): relocation truncated to fit: R_MSP430_16 against symbol `nullsec_driver' defined in .rodata section in contiki-sky.a(nullsec.o)
/home/user/contiki/examples/hello-world/../../core/net/ipv6/sicslowpan.c:1797:(.text.output+0x32): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
make: *** [hello-world.sky] Error 1

P.S:对于那些试图关闭问题而不传达原因的人,请理解这个问题不是 too-broadprimarily opinion-based.

c contiki
1个回答
1
投票

你的第一行错误世界天空栏目 .rodata' will not fit in regionROM"。

因此,请尝试使用Z1(92 KB)ROM代替sky mote(48 KB)ROM。

© www.soinside.com 2019 - 2024. All rights reserved.