VS Arduino
>> >> Segmentation Faults
https://www.visualmicro.com/forums/YaBB.pl?num=1561397592

Message started by Bob Jones on Jun 24th, 2019 at 5:33pm

Title: Segmentation Faults
Post by Bob Jones on Jun 24th, 2019 at 5: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?

Title: Re: Segmentation Faults
Post by Visual Micro on Jun 24th, 2019 at 5: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?

Title: Re: Segmentation Faults
Post by Bob Jones on Jun 24th, 2019 at 5:39pm
I am looking for a compiler that doesn't generate segmentation faults and ideally one that has better diagnostics. Any recommendations?


Title: Re: Segmentation Faults
Post by Visual Micro on Jun 26th, 2019 at 1: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.

Title: Re: Segmentation Faults
Post by Bob Jones on Jun 26th, 2019 at 1: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.

Title: Re: Segmentation Faults
Post by Visual Micro on Jun 26th, 2019 at 2: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.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.