This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] RTOS/MSP430G2553:[使用 Energia 时出错-重定位被截断以适合]

Guru**** 2560390 points
Other Parts Discussed in Thread: MSP430G2553, ENERGIA

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/805779/rtos-msp430g2553-error-using-energia---relocation-truncated-to-fit

器件型号:MSP430G2553
主题中讨论的其他器件: Energia

工具/软件:TI-RTOS

你好

我正在使用 MSP430G2553、湿度传感器和 GSM 模块 Sim800L 进行探测。  

当我尝试上传代码时、会出现以下错误:  

C:/.../energia-1.8.7e21/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3 \libcrt0.a (_copy_data.o):在函数`__ do _ copy_data'中:

/root/mspgcc-20120406/BUILD/gcc/gcc/../../../gcc-4.6.3/gcc/config/msp430/crt0.S:195:重定位被截断以适合:R_MSP430_16_byte 与 C:\Users\...\Envio_GPRS.ino.elf 中* abs*部分中定义的符号`_data_load_start'相对应

函数`_static_initialization_and_conferation_0 (int、int)中的 GPRS.ino.cpp.o:[克隆.constprop.1]':

GPRS.ino.cpp:(.text._Z41__static_initialization_and_destruction_0ii.constprop.1+0x18):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

GPRS.ino.cpp:(.text._Z41__static_initialization_and_destruction_0ii.constprop.1+0x24):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

`s"etup"中的 GPRS.ino.cpp.o::

Envio_GPRS.ino.cpp:(.text.setup+0x2a):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

Envio_GPRS.ino.cpp:(.text.setup+0x36):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

Envio_GPRS.ino.cpp:(.text.setup+0x4c):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

Envio_GPRS.ino.cpp:(.text.setup+0x60):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

函数`send_data()'中的\Envio_GPRS.ino.cpp.o::

Envio_GPRS.ino.cpp:(.text._Z9send_datav+0x20):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

Envio_GPRS.ino.cpp:(.text._Z9send_datav+0x36):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

Envio_GPRS.ino.cpp:(.text._Z9send_datav+0x4c):重定位被截断以适合:R_MSP430_16_byte 与`无符号'

Envio_GPRS.ino.cpp:(.text._Z9send_datav+0x62):输出中省略了其他重定位溢出

谷歌搜索后、我发现解决方案是:

Contiki/cpU/msp40/Makefile.msp430

近行132搜索

CFLAGSNO =-Wall -mmcu=$(CC_MCU)-g $(CFLAGSWERROR)并擦除(-g) 

我的问题是。 我已经安装了 contiki、但无法找到 cpu/msp40/Makefile.msp430这一行内容。