Jump to content
G0XAR

Energia compilation errors

Recommended Posts

Hi Guys,

 

I am more than a little puzzled by the compilation error messages I am getting from the latest version

of Energia. Here is the sketch :-

 

 

/* 
 * A simple single freq AD9850 Arduino test script
 * Original AD9851 DDS sketch by Andrew Smallbone at www.rocketnumbernine.com
 * Modified for testing the inexpensive AD9850 ebay DDS modules
 * Pictures and pinouts at nr8o.dhlpilotcentral.com
 * Use freely
 */
 
 #define W_CLK 11       // Pin 8 - connect to AD9850 module word load clock pin (CLK)
 #define FQ_UD 12     // Pin 9 - connect to freq update pin (FQ)
 #define DATA 13      // Pin 10 - connect to serial data load pin (DATA)
 #define RESET 15     // Pin 11 - connect to reset pin (RST).
 
 #define pulseHigh(pin) {digitalWrite(pin, HIGH); digitalWrite(pin, LOW); }
 
 // transfers a byte, a bit at a time, LSB first to the 9850 via serial DATA line
void tfr_byte(byte data)
{
  for (int i=0; i<8; i++, data>>=1) {
    digitalWrite(DATA, data & 0x01);
    pulseHigh(W_CLK);   //after each bit sent, CLK is pulsed high
  }
}
 
 // frequency calc from datasheet page 8 = <sys clock> * <frequency tuning word>/2^32
void sendFrequency(double frequency) {
  int32_t freq = frequency * 4294967295/125000000;  // note 125 MHz clock on 9850
  for (int b=0; b<4; b++, freq>>=8) {
    tfr_byte(freq & 0xFF);
  }
  tfr_byte(0x000);   // Final control byte, all 0 for 9850 chip
  pulseHigh(FQ_UD);  // Done!  Should see output
}
 
void setup() {
 // configure arduino data pins for output
  pinMode(FQ_UD, OUTPUT);
  pinMode(W_CLK, OUTPUT);
  pinMode(DATA, OUTPUT);
  pinMode(RESET, OUTPUT);
   
  pulseHigh(RESET);
  pulseHigh(W_CLK);
  pulseHigh(FQ_UD);  // this pulse enables serial mode - Datasheet page 12 figure 10
}
 
void loop() {
  sendFrequency(10.e6);  // freq
  while(1);
}
 
And here are the errors :-
 
 
 
 
/Applications/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: sketch_dec24a.cpp.elf section `.text' will not fit in region `rom'
/Applications/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: section .vectors loaded at [000000000000ffe0,000000000000ffff] overlaps section .text loaded at [000000000000f800,0000000000010175]
/Applications/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `rom' overflowed by 480 bytes
/Applications/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/libcrt0.a(_copy_data.o): In function `__do_copy_data':
/Users/rwessels/mspgcc/BUILD/gcc/gcc/../../../gcc/gcc/config/msp430/crt0.S:195: relocation truncated to fit: R_MSP430_16_BYTE against symbol `__data_load_start' defined in *ABS* section in sketch_dec24a.cpp.elf
/Applications/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/crt0ivtbl16.o: In function `__isr_14':
(.text+0x2): relocation truncated to fit: R_MSP430_16 against symbol `_unexpected_' defined in .text.crt0 section in /Applications/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/libcrt0.a(_unexpected_.o)
core.a(wiring_digital.c.o): In function `pinMode':
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:38: relocation truncated to fit: R_MSP430_16_BYTE against symbol `digital_pin_to_bit_mask' defined in .rodata.digital_pin_to_bit_mask section in core.a(wiring_digital.c.o)
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:39: relocation truncated to fit: R_MSP430_16_BYTE against symbol `digital_pin_to_port' defined in .rodata.digital_pin_to_port section in core.a(wiring_digital.c.o)
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:47: relocation truncated to fit: R_MSP430_16_BYTE against symbol `port_to_dir' defined in .rodata.port_to_dir section in core.a(wiring_digital.c.o)
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:48: relocation truncated to fit: R_MSP430_16_BYTE against symbol `port_to_ren' defined in .rodata.port_to_ren section in core.a(wiring_digital.c.o)
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:49: relocation truncated to fit: R_MSP430_16_BYTE against symbol `port_to_output' defined in .rodata.port_to_output section in core.a(wiring_digital.c.o)
core.a(wiring_digital.c.o): In function `digitalWrite':
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:144: relocation truncated to fit: R_MSP430_16_BYTE against symbol `digital_pin_to_bit_mask' defined in .rodata.digital_pin_to_bit_mask section in core.a(wiring_digital.c.o)
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:145: relocation truncated to fit: R_MSP430_16_BYTE against symbol `digital_pin_to_port' defined in .rodata.digital_pin_to_port section in core.a(wiring_digital.c.o)
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:156: relocation truncated to fit: R_MSP430_16_BYTE against symbol `port_to_sel0' defined in .rodata.port_to_sel0 section in core.a(wiring_digital.c.o)
/Applications/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/wiring_digital.c:174: additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
 
I am using a Mac with OS/X 10.8.2 as the development computer, the latest version of Energia and the target board is a Launchpad 430. I know that the code works on the previous version of Energia, because I have a friend running it. The sketch itself is a copy of a well used one in the Arduino community for controlling the AD9850 DDS chip. I copied the source file using cut and paste. 
 
Apart from fixing the sketch I would quite like to know what the messages actually mean. 
 
Thanks for your time,
 
Steve

 

Share this post


Link to post
Share on other sites

Hi guys,

 

Problem solved! I scratched my head for a while, and looked at the messages which seemed to be memory related. Then I thought "Where do I specify the processor type?". Then Guido said "Tools, Board, ect". So I did this and recompiled. Result 0 errors.

 

It might be a good idea for the next release of Energia to ask the user to specify a processor at compilation time if none is specified. Something as simple as a message saying "You must specify a target processor before compilation" followed by the compilation failing might do. For a beginner what happened to me could be very confusing. 

 

Thanks for all the fine effort and have a great Christmas,

 

Steve

Share this post


Link to post
Share on other sites

This seems like the right topic for my question.  Suddenly the Energia IDE is failing to compile code that. except for a couple variable edits (value, not name)  It ran on the very same board  the day before. 

 

I've got compile and upload set to "verbose" and there's a ton of errors before the compile fails.

 

Since there's a code button I'll post it

C:\Users\xxxxxxxx\Desktop\energia-0101e0011/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: SSR_Exerciser_2D_Modified.cpp.elf section `.text' will not fit in region `rom'
C:\Users\xxxxxxxx\Desktop\desktop/energia-0101e0011/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: section .vectors loaded at [0000ffe0,0000ffff] overlaps section .text loaded at [0000f800,00011091]
C:\Users\xxxxxxxx\Desktop\energia-0101e0011/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: region `rom' overflowed by 4776 bytes
c:/users/uber.useruber-pc/desktop/energia-0101e0011/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 SSR_Exerciser_2D_Modified.cpp.elf
core.a(main.cpp.o): In function `main':
C:\Users\xxxxxxxx\Desktop\Desktop\energia-0101E0011\hardware\msp430\cores\msp430/main.cpp:11: relocation truncated to fit: R_MSP430_16_BYTE against symbol `serialEventRun()' defined in .text._Z14serialEventRunv section in core.a(TimerSerial.cpp.o)
C:\Users\xxxxxxxx\Desktop\energia-0101E0011\hardware\msp430\cores\msp430/main.cpp:11: relocation truncated to fit: R_MSP430_16 against symbol `serialEventRun()' defined in .text._Z14serialEventRunv section in core.a(TimerSerial.cpp.o)
SSR_Exerciser_2D_Modified.cpp.o: In function `setup':
C:\Users\xxxxxxxx\Desktop\energia-0101E0011/SSR_Exerciser_2D_Modified.ino:95: relocation truncated to fit: R_MSP430_16 against symbol `TimerSerial::begin(unsigned long)' defined in .text._ZN11TimerSerial5beginEm section in core.a(TimerSerial.cpp.o)
SSR_Exerciser_2D_Modified.cpp.o: In function `loop':
C:\Users\xxxxxxxx\Desktop\energia-0101E0011/SSR_Exerciser_2D_Modified.ino:100: relocation truncated to fit: R_MSP430_16 against symbol `__floatunsisf' defined in .text section in c:/users/uber.useruber-pc/desktop/energia-0101e0011/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3\libgcc.a(_usi_to_sf.o)
C:\Users\xxxxxxxx\Desktop\Desktop\energia-0101E0011/SSR_Exerciser_2D_Modified.ino:102: relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
C:\Users\xxxxxxxx\Desktop\energia-0101E0011/SSR_Exerciser_2D_Modified.ino:103: relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
C:\Users\xxxxxxxx\Desktop\energia-0101E0011/SSR_Exerciser_2D_Modified.ino:104: relocation truncated to fit: R_MSP430_16 against symbol `Print::print(double, int)' defined in .text._ZN5Print5printEdi section in core.a(Print.cpp.o)
C:\Users\xxxxxxxx\Desktop\energia-0101E0011/SSR_Exerciser_2D_Modified.ino:105: relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
C:\Users\xxxxxxxx\Desktop\energia-0101E0011/SSR_Exerciser_2D_Modified.ino:114: relocation truncated to fit: R_MSP430_16 against symbol `__divsf3' defined in .text section in c:/users/uber.useruber-pc/desktop/energia-0101e0011/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3\libgcc.a(_div_sf.o)
C:\Users\xxxxxxxx\Desktop\energia-0101E0011/SSR_Exerciser_2D_Modified.ino:119: additional relocation overflows omitted from the output
collect2: ld returned 1 exit status

Any ideas what's happening here?

 

 

 

 

Share this post


Link to post
Share on other sites

I figured it out. I've been jumping back and forth between two different PCs each with their own copy of Energia.

 

In the rush of events I re installed the latest version on one of them and FORGOT to specify the correct LaunchPad

In the Tools>Board menu item

 

 

Apparently on it defaults to "something other than what I have".

 

My problem is solved, thanks.

Share this post


Link to post
Share on other sites

can somebody help me. I am doing a project on energy for my msp4302231 launchpad. This is the code I have to upload to my launchpad:

 

 

//***************************************************************************************

//  EE40LX
//  Sketch 1.4
//
//  Description; Output an alternating high and low voltage to P1.0,
//     turning a red LED on the MSP430G2 Launch Pad on and off
//
//  Tom Zajdel
//  University of California, Berkeley
//  December 15, 2014
//
//***************************************************************************************
 
void setup()
{
  // start the serial monitor
  Serial.begin(9600);
  
  // set P1.0 to output
  pinMode(P1_0, OUTPUT);
  Serial.println("Pin 1.0 set as output");
}
 
void loop()
{
  digitalWrite(P1_0, HIGH);  // set the pin to high, turning LED on
  Serial.println("LED on");
  
  sleep(1000);               // wait 1000 ms
  
  digitalWrite(P1_0, LOW);   // set the pin to low, turning LED off
  Serial.println("LED off");
  
  sleep(1000);               // wait 1000 ms
}
 
 
 
This is the returning error i get:
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-g++, -c, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430g2231, -DF_CPU=1000000L, -MMD, -DARDUINO=101, -DENERGIA=17, -I/Users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430, -I/Users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/msp430/variants/launchpad, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/sketch_1_4.cpp, -o, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/sketch_1_4.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/atof.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/dtostrf.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/itoa.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/random.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/twi.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/twi_sw.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/usci_isr_handler.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/WInterrupts.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/wiring.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/wiring_analog.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/wiring_digital.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/wiring_pulse.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/wiring_shift.c.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/HardwareSerial.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/IPAddress.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/MACAddress.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/main.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/new.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/Print.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/Stream.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/TimerSerial.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/Tone.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/Wire.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/WMath.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-ar, rcs, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/WString.cpp.o]
[/users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/msp430-gcc, -Os, -Wl,-gc-sections,-u,main, -mmcu=msp430g2231, -o, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/sketch_1_4.cpp.elf, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/sketch_1_4.cpp.o, /var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp/core.a, -L/var/folders/lz/xhy40vz169q8m49j_z4y3psh0000gn/T/build4478788377806274551.tmp, -lm]
/Users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: sketch_1_4.cpp.elf section `.rodata' will not fit in region `rom'
/Users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: section .vectors loaded at [000000000000ffe0,000000000000ffff] overlaps section .rodata loaded at [000000000000ff84,000000000000fffb]
/Users/sanjitsingh/Desktop/Energia.app/Contents/Resources/Java/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `rom' overflowed by 28 bytes
collect2: ld returned 1 exit status
 
Can someone please help

Share this post


Link to post
Share on other sites

The error says "will not fit in region rom" and "region rom overflowed by 28 bytes" (last few lines of your dump). You're running out of FLASH memory.

 

The MSP430G2231 has only 2KB of FLASH and 128 bytes of RAM. With Energia's overhead, you won't be able to do much else beyond wiggling a few pins. Your sketch will probably work when not using Serial.

 

I suggest you use the MSP430G2553 IC that's included with the G2 LaunchPad. It has 16KB of FLASH and 512 bytes of RAM.

Share this post


Link to post
Share on other sites

hello guys ,

am working on my final year project, am trying to extract latitudes and longitudes of ublox gps neo- 6m using msp430 launchpad chip being g2553 .. the problem is i cant find any library that works with energia IDE.

any help will be greatly appreciated.thanks

regards

marwa

Share this post


Link to post
Share on other sites

hello guys ,

am working on my final year project, am trying to extract latitudes and longitudes of ublox gps neo- 6m using msp430 launchpad chip being g2553 .. the problem is i cant find any library that works with energia IDE.

any help will be greatly appreciated.thanks

regards

marwa

Please start a new thread with your issue.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...