Any general discussion around the firmware, what is does, how it does it etc.
User avatar
By SteveBlakely
#7658
Hi all, sorry this message is long...

Hate to be a burden but having issues compiling the firmware for Speeduino.

I've tried building March 31st 2016 firmware, as well as latest builds from Github (2nd April 2016 download)

I will be up front at mention that I've avoided using Arduino IDE for many years and am a "newbie" regarding the use of the IDE (as simple as it is...)

Problem: I'm getting "collect2.exe: error: ld returned 5 exit status"
Hopefully attached is a capture from Arduino IDE 1.6.8 of the build (full verbose report)
(35.89 KiB) Downloaded 282 times
Could someone take the time to look at the error attachment and suggest what maybe wrong?

I'm pretty sure it will be library related... As I think I've confused myself about what to shift where and why....

I've followed the instructions on this page: http://speeduino.com/wiki/index.php/Com ... g_Firmware
and also did some searching on the forum and followed instructions from this post also: http://speeduino.com/forum/viewtopic.php?f=13&t=370
along with many other posts.... but to no avail.

I've tried building with Arduino 1.6.6 and 1.6.8 both on linux and windows.... The linux version of Arduino won't load due to missing dependencies on my system but thats another issue (for me to fix) while the windows versions both had the same error result (as above). Which suggests its something that I'M DOING or NOT DOING correctly....

Which leads me to the 2nd question of which documentation to follow...?
I've seen this on github: https://github.com/noisymime/speeduino/ ... leshooting
This on speeduino.com: http://speeduino.com/wiki/index.php/Com ... g_Firmware
and this about the library changes: http://speeduino.com/forum/viewtopic.php?f=13&t=370

I'm assuming that http://speeduino.com/wiki/index.php/Com ... g_Firmware is the latest and correct documentation as it was last updated on the 31st March 2016... correct?

So I'll quote the following... <

Latest Stable Firmware

Date: March 31st 2016
Details: See http://speeduino.com/forum/viewtopic.php?f=13&t=504
Download: http://speeduino.com/wiki/images/5/59/S ... _Mar16.zip
Notes:
From the January 2016 release onwards it is no longer required to copy the library files! If you have these files already copied, you will need to remove them from the arduino/libraries directory and restart Arduino!
Also from January 2016, the minimum required version of the Arduino IDE is 1.6.6! Earlier versions will NOT work
Remember to always reload the latest ini file into your TunerStudio project when you load new firmware (See below for details)

>end quote
So if I understand this, copying libraries from the downloaded ZIP file to somewhere is a thing of the past (due to Arduino IDE changes). I should be able to download Speeduino firmware ZIP, extract it to "My Documents\Arduino\speeduino" (windows machine), load up Arduino IDE 1.6.6+ and set the board to Mega ADK and it should build correctly when clicking the verify button...

Hmm what am I doing wrong...

Thanks
Steve.
By noisymime
#7659
Hey Steve, welcome to the project!
SteveBlakely wrote:Problem: I'm getting "collect2.exe: error: ld returned 5 exit status"
Hopefully attached is a capture from Arduino IDE 1.6.8 of the build (full verbose report)
Are you running Windows XP by any chance? One member experienced a similar problem in the past and it turned out to be a bug in new versions of the Arduino IDE running on Windows XP. Unfortunately this is a bit of a bind as the newer versions are now required in order to compile.
SteveBlakely wrote:Which leads me to the 2nd question of which documentation to follow...?
I've seen this on github: https://github.com/noisymime/speeduino/ ... leshooting
This on speeduino.com: http://speeduino.com/wiki/index.php/Com ... g_Firmware
and this about the library changes: viewtopic.php?f=13&t=370

I'm assuming that http://speeduino.com/wiki/index.php/Com ... g_Firmware is the latest and correct documentation as it was last updated on the 31st March 2016... correct?
The version on the speeduino.com wiki is always the latest. I've just gone through and removed the wiki pages from github as they are definitely out of date. I thought they had been removed previously, but I must've missed them. Sorry about that.

As of today, the March 31st firmware is the latest, though there will be a new code drop in 2-3 days.
By berthfield
#7661
noisymime wrote:Hey Steve, welcome to the project!

Are you running Windows XP by any chance? One member experienced a similar problem in the past and it turned out to be a bug in new versions of the Arduino IDE running on Windows XP. Unfortunately this is a bit of a bind as the newer versions are now required in order to compile.
I had a read through the log, I do think the problem is between the IDE and Windows XP. (Presuming XP because of the location of the Documents folder).

Give this a try:
I was also getting crashes of LD.EXE on XPSP3, just after upgrading from 1.0.2 to 1.6.7.

I think I may have discovered a workable solution that stops the crashes and seems to make everything normal again. And it's nice and simple. I hope it works for others.

I located the LD.exe that was crashing (using a search)--I had two ld.exe files--one that came with 1.0.2 and one that came with 1.6.7. I clicked on the offending LD.exe (mine was located in Program Files/Arduino/hardware/tools/avr/avr/bin) and select properties, then compatibility, and check "Run in compatibility mode", select "Windows 98 / Windows ME", and click apply.

For me, doing this instantly stopped the LD.EXE crashing. I'm not sure exactly why, maybe some smart geeks here can explain the "Why".

The next step is to see if it works for others.

N
Source:This post on the Arduino forums
#7662
Hello, and thanks for the welcome Noisymime.

I've been watching this project for some time and watched many of the videos on YouTube etc. It was your talk at the 2015 Linux conference that really inspired me to follow along.
Are you running Windows XP by any chance? One member experienced a similar problem in the past and it turned out to be a bug in new versions of the Arduino IDE running on Windows XP. Unfortunately this is a bit of a bind as the newer versions are now required in order to compile.
Yes, I am running Windows XP as my development machine. I do have some linux machines so will try Arduino on one of them again....

The Arduino IDE has been behaving strangely - Closing suddenly, not showing compiler output and (sometimes) taking a while to load... I thought the IDE would be quite stable but I guess progress can break things...

Thanks for the documentation clear up. I'll focus on the Wiki and Forum for support.

Cheers
Steve.
#7664
(Presuming XP because of the location of the Documents folder).
Good spotting here. Yes XP sp3...
Give this a try:

I was also getting crashes of LD.EXE on XPSP3, just after upgrading from 1.0.2 to 1.6.7.

I think I may have discovered a workable solution that stops the crashes and seems to make everything normal again. And it's nice and simple. I hope it works for others.

I located the LD.exe that was crashing (using a search)--I had two ld.exe files--one that came with 1.0.2 and one that came with 1.6.7. I clicked on the offending LD.exe (mine was located in Program Files/Arduino/hardware/tools/avr/avr/bin) and select properties, then compatibility, and check "Run in compatibility mode", select "Windows 98 / Windows ME", and click apply.

For me, doing this instantly stopped the LD.EXE crashing. I'm not sure exactly why, maybe some smart geeks here can explain the "Why".

The next step is to see if it works for others.

N
I'm afraid this hasn't worked for me. But your post has given me more insight that it is an IDE/OS problem..... thank you.

Cheers
Steve.
#7665
Success!!! Speeduino code compiled successfully with Arduino 1.6.8 on WinXP

I followed these instructions here:
I could solve the problem with the following procedure:
1) Dowload from: https://www.arduino.cc/en/Main/OldSoftw ... ases#1.0.x, the version 1.05 for windows. Is not the windows installer (EXE). Is a file zip.
2) in C:\Archivos de programa\Arduino\hardware\tools\avr\avr\bin\ , change extension a ld.exe to ld.exe1.
3) From file.ZIP, copy file ld.exe to C:\Archivos de programa\Arduino\hardware\tools\avr\avr\bin\
No more.
All work OK.
Source of the instructions was: https://forum.arduino.cc/index.php?topi ... msg2442416

So just to re-cap...
I had a build error in Arduino 1.6.8 of " collect2.exe: error: ld returned 5 exit status " when compiling Speeduino firmware on Windows XP sp3
Arduino's/gcc's LD.EXE seems to be the issue and for me, copying LD.EXE from version 1.0.5 and replacing version 1.6.8 solved the compile error. Why this fixes the problem and what the error is - I don't know...

Thanks to those that took the time to read and comment on my post.
@berthfield - You pointed me in the correct direction, thanks.

Hopefully this helps someone else....
Cheers
Steve.

Sorry, forgot the links on the last reply. Power T[…]

That’s great to hear! I’m sure it feel[…]

Hello, thank you for responding and doing it so qu[…]

Continuing with the road trials. Have upgraded th[…]

Still can't find what you're looking for?