我已经克隆了最新的contiki-master。现在我需要打印来自sicslowpan.c的调试消息。如果#define DEBUG DEBUG_NONE
模拟有效,但如果我在#define DEBUG DEBUG_PRINT
中设置sicslowpan.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-broad
或primarily opinion-based
。
答案 0 :(得分:2)
您的第一行错误:world.sky部分.rodata' will not fit in region
rom'。
因此请尝试使用Z1(92 KB)ROM即时状态的天空微粒(48 KB)ROM。