uberteck 0 Posted May 29, 2019 Share Posted May 29, 2019 Hello I'm doing a projet using a MSP430G2553, a humidity sensor and a GSM module Sim800L. In the moment that i'm trying to upload my code, it gives me the following errors: c:/.../energia-1.8.7e21/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3\libcrt0.a(_copy_data.o): In function `__do_copy_data': /root/mspgcc-20120406/BUILD/gcc/gcc/../../../gcc-4.6.3/gcc/config/msp430/crt0.S:195: relocation truncated to fit: R_MSP430_16_BYTE against symbol `__data_load_start' defined in *ABS* section in C:\Users\...\Envio_GPRS.ino.elf GPRS.ino.cpp.o: In function `__static_initialization_and_destruction_0(int, int) [clone .constprop.1]': GPRS.ino.cpp:(.text._Z41__static_initialization_and_destruction_0ii.constprop.1+0x18): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' GPRS.ino.cpp:(.text._Z41__static_initialization_and_destruction_0ii.constprop.1+0x24): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' GPRS.ino.cpp.o: In function `setup': Envio_GPRS.ino.cpp:(.text.setup+0x2a): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' Envio_GPRS.ino.cpp:(.text.setup+0x36): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' Envio_GPRS.ino.cpp:(.text.setup+0x4c): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' Envio_GPRS.ino.cpp:(.text.setup+0x60): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' \Envio_GPRS.ino.cpp.o: In function `send_data()': Envio_GPRS.ino.cpp:(.text._Z9send_datav+0x20): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' Envio_GPRS.ino.cpp:(.text._Z9send_datav+0x36): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' Envio_GPRS.ino.cpp:(.text._Z9send_datav+0x4c): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol' Envio_GPRS.ino.cpp:(.text._Z9send_datav+0x62): additional relocation overflows omitted from the output After google it, i found that the solution was: contiki/cpu/msp40/Makefile.msp430 near line 132 search for CFLAGSNO = -Wall -mmcu=$(CC_MCU) -g $(CFLAGSWERROR) and erase the (-g) My problem is. I already installed the contiki and i can not find this line neither the cpu/msp40/Makefile.msp430. Quote Link to post Share on other sites
Rei Vilo 695 Posted May 29, 2019 Share Posted May 29, 2019 This is memory overflow. Try with another MCU with larger Flash and RAM. Quote Link to post Share on other sites
uberteck 0 Posted May 29, 2019 Author Share Posted May 29, 2019 The thing is that i saw some posts with my code to arduino and they work. But in my msp430, it gives error Quote Link to post Share on other sites
Rei Vilo 695 Posted May 30, 2019 Share Posted May 30, 2019 Again, this is memory overflow. Try with another MCU with larger Flash and RAM. You need to dig into the data-sheets of the MCUs of the boards and compare the sizes of Flash and RAM memory. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.