Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Segmentation Faults (Read 308 times)
Bob Jones
Full Member
***
Offline



Posts: 207
Bellingham, WA
Segmentation Faults
Jun 24th, 2019 at 6:33pm
 
I am getting an increasing number of segmentation faults (over a dozen so far today alone). I remember hearing about an alternative compiler that was under development. Is that compiler ready for prime time yet, and if so, will you be incorporating it into Visual Micro?
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10566
United Kingdom
Re: Segmentation Faults
Reply #1 - Jun 24th, 2019 at 6:37pm
 
Hi Bob,

We work with any compiler that a package defines as long as the definition complies to the Arduino 3rd party hardware spec. Visual Micro does not have any hard coded compilers or know any information about the compiler(s) you are using.

Therefore you can use any package you find on the internet with any compiler.

Did you have a specific one in mind?
Back to top
 
WWW  
IP Logged
 
Bob Jones
Full Member
***
Offline



Posts: 207
Bellingham, WA
Re: Segmentation Faults
Reply #2 - Jun 24th, 2019 at 6:39pm
 
I am looking for a compiler that doesn't generate segmentation faults and ideally one that has better diagnostics. Any recommendations?

Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10566
United Kingdom
Re: Segmentation Faults
Reply #3 - Jun 26th, 2019 at 2:37am
 
Sorry I am not proficient at understanding compilers. Do you know what causes the segmentation faults? Is there a different version (previous or later) of the tool chain you are using that avoids the issue?

You would need to give information about your hardware etc. for anyone to be able to help you. You should also state the arduino ide version you are using and if you have installed a tool chain via board manager. It's really impossible to help without good information.
Back to top
« Last Edit: Jun 26th, 2019 at 2:41am by Visual Micro »  
WWW  
IP Logged
 
Bob Jones
Full Member
***
Offline



Posts: 207
Bellingham, WA
Re: Segmentation Faults
Reply #4 - Jun 26th, 2019 at 2:57am
 
I am not competent to answer the questions you ask. What I know is that the segmentation faults will often go away if I clean and rebuild the code, or simply move code around.

Even though I have been programming for half a century, I have no idea how to install a different compiler. I am just too bloody old to figure that one out.

But thanks for hanging in there with me.
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10566
United Kingdom
Re: Segmentation Faults
Reply #5 - Jun 26th, 2019 at 3:01am
 
You need to provide the information I asked for or at least to provide the build output described in yellow at the top of this page. I am sure you are not the first person to hit the issue.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print