Jump to content
Sign in to follow this  
OLA430h

internal compiler error: Segmentation fault

Recommended Posts

Thank you.

 

  • LAUNCHPAD: MSP-EXP430F5529LP with integrated USB to 25 MHz
  • MCU: MSP430F5529
  • eZ-FET-Lite Next Generation on Board Emulation
  • I'm using the blink example just as it is.

The thing is that an error occurs when i'm trying to Upload the code. Previusly i have installed the drivers as indicated. I think maybe its an OS issue, because i'm using XP and working in a kind of old laptop...

Baud rate is at 9600

 

 

I hope this should be enough to start.

 

Regards

Share this post


Link to post
Share on other sites

@@OLA430h

 

I don't have anything running XP any longer.  I suspect you may be right that it is an OS issue and I'm not sure I am going to be much help.  You may have already done a search on this site and if so you may have noticed the fixes sometimes involve installing a different version (usually the latest) of Energia.  In your case it may be better to install an older version.  The F5529 has been around a while and you may find a stable version that works with XP.  You might try going back to 13 or 14 - just a shot in the dark.

 

 

The thing is that an error occurs when i'm trying to Upload the code.

Does this mean it only happens when you try to upload and not when you compile?  Does it happen when you try to compile / upload a blank sketch or one of the other examples?

Share this post


Link to post
Share on other sites

Just uploaded this:

/*
  Blink
  The basic Energia example.
  Turns on an LED on for one second, then off for one second, repeatedly.
  Change the LED define to blink other LEDs.
  
  Hardware Required:
  * LaunchPad with an LED
  
  This example code is in the public domain.
*/

// most launchpads have a red LED
#define LED RED_LED

//see pins_energia.h for more LED definitions
//#define LED GREEN_LED
  
// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(LED, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(LED, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(LED, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}
To one of my F5529 boards and other than having to reset the board for the sketch to start running there were no errors.

This is Win10, Energia 16.

 

 

May I suggest extracting Energia to the 'root' of your hard drive, i.e. "C:\Energia" or similar directory without spaces in the name?

Share this post


Link to post
Share on other sites

Hi, again.

 

I just "upgrade" my laptop to windows 7 (32 bits) and put Energia folder in the root (C:\Energia) then i have installed MSP430 drivers and... Again, just the same error when i click on the "Upload" button.

 

I'm using the "UARL" Port which is the COM5 in my case and the MSP4305529@25MHz LP. The Baud rate for this port i'm using is 9600.

 

Blink.cpp:1:0: internal compiler error: Segmentation fault

Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html>for instructions.
 
I will look for more information around here and let you know when getting success.
 
Regards

Share this post


Link to post
Share on other sites

Could be due to a corrupted download? I do not know the details about Energia but I would think it is a collection of programs - not a monolith: Energia IDE, compiler, linker, programmer? More? The error message you got was from the compiler, segmentation fault is triggered when it tries to address a memory location it does not have access to suggesting either a bug or corrupt code. Or even bad memory in your computer...

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.

Sign in to follow this  

×
×
  • Create New...