Welcome! Log In Create A New Profile

Advanced

Duet + ReprapFirmware build help please.

Posted by UkIan 
Duet + ReprapFirmware build help please.
December 16, 2014 06:25PM
I've followed this tutorial to get Eclipse building RepRapFirmware (unsuccessfully). I think it's a bit out of date as a lot of the packages are updated now.

The Arduino Eclipse plugin doesn't seem to support 1.5.8 would be my guess. I followed all the steps and my build output indicates it can't find "make" which I would of thought would be in the arduino binaries directory I set up...

Is there anything much to configure in the firmware that needs to be done prior to compilation? I.e. all the changes for ramps in configuration.h? Or can it all be set up via the web interface? If the latter, I could just use a pre-built version if available.

Build output and warnings below.

Build output:
22:32:59 **** Clean-only build of configuration Release for project RepRapFirmware ****
make clean 
Cannot run program "make": Launching failed

Error: Program "make" not found in PATH
PATH=[C:/Program Files (Other)/Eclipse/Arduino158/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/;C:/Program Files (Other)/Eclipse/Arduino158/hardware/tools/g++_arm_none_eabi/arm-none-eabi/bin;C:/Program Files (Other)/Eclipse/Arduino158/hardware/tools/avr/utils/bin;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\FileBot\;C:\Program Files (x86)\nodejs\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\Ian\AppData\Roaming\npm;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (Other)\Eclipse\EclipseLuna]

22:32:59 Build Finished (took 38ms)

22:33:02 **** Build of configuration Release for project RepRapFirmware ****
make all 
Cannot run program "make": Launching failed

Error: Program "make" not found in PATH
PATH=[C:/Program Files (Other)/Eclipse/Arduino158/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/;C:/Program Files (Other)/Eclipse/Arduino158/hardware/tools/g++_arm_none_eabi/arm-none-eabi/bin;C:/Program Files (Other)/Eclipse/Arduino158/hardware/tools/avr/utils/bin;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\FileBot\;C:\Program Files (x86)\nodejs\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\Ian\AppData\Roaming\npm;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (Other)\Eclipse\EclipseLuna]

22:33:02 Build Finished (took 38ms)

Warnings:
Description	Resource	Path	Location	Type
Invalid project path: Include path not found (Program Files (Other)\Eclipse\Arduino158\hardware\arduino\sam\system\libsam\include).	RepRapFirmware		pathentry	Path Entry Problem
Invalid project path: Include path not found (Work\Eclipse\Workspace\RepRapFirmware\Libraries\EMAC).	RepRapFirmware		pathentry	Path Entry Problem
Invalid project path: Include path not found (Work\Eclipse\Workspace\RepRapFirmware\Libraries\Lwip).	RepRapFirmware		pathentry	Path Entry Problem
Invalid project path: Include path not found (Work\Eclipse\Workspace\RepRapFirmware\Libraries\MCP4461).	RepRapFirmware		pathentry	Path Entry Problem
Invalid project path: Include path not found (Work\Eclipse\Workspace\RepRapFirmware\Libraries\SamNonDuePin).	RepRapFirmware		pathentry	Path Entry Problem
Invalid project path: Include path not found (Work\Eclipse\Workspace\RepRapFirmware\Libraries\SD_HSMCI).	RepRapFirmware		pathentry	Path Entry Problem
Invalid project path: Include path not found (Work\Eclipse\Workspace\RepRapFirmware\Libraries\SD_HSMCI\utility).	RepRapFirmware		pathentry	Path Entry Problem
Invalid project path: Include path not found (Work\Eclipse\Workspace\RepRapFirmware\Libraries\Wire).	RepRapFirmware		pathentry	Path Entry Problem
Invalid project path: Include path not found (Work\Eclipse\Workspace\RepRapFirmware\network).	RepRapFirmware		pathentry	Path Entry Problem

If it's simpler I'll just use the arduino ide. I don't plan to work on the firmware right now at all, just get it working.
Re: Duet + ReprapFirmware build help please.
December 17, 2014 09:37PM
Hi Uklan

The blog post is out of date now if you use the most up to date packages but it still works fine if you use the older ones - have you tried that?

Cheers

Tony


DuetWifi.: advanced 3d printing electronics
Re: Duet + ReprapFirmware build help please.
December 18, 2014 06:34AM
Not yet, I immediately downloaded the latest versions of everything, but there's no reason I can't use older versions. I've got the arduino for Visual Studio plug in as well, so I might give that a go as I'm not a fan of Eclipse anyway.

I'll try it with older versions first though, I just need a working firmware before I do anything else.

Do I need to compile in settings, or are they all configurable post compilation? I.e. all the stuff that used to go in configuration.h for marlin like steps per mm and so on??

Thanks
Re: Duet + ReprapFirmware build help please.
December 18, 2014 10:14AM
I'm also looking for help on trying to make the Duet binary file for upload by Bossac.

I think everything is installed and working. I get the following message when I run project - build all:

14:52:30 **** Incremental Build of configuration Release for project RepRapFirmware ****
make all 

14:52:30 Build Finished (took 97ms)

Where does the binary file go? I was also expecting the build to take far longer...

Ok, noticed some files changing. Tried the following:

* Deleted the Release folder.
* Project -> Clean (Select clean selected project and RepRapFirmware) -> Press Ok.
* Project -> Build all
15:38:32 **** Build of configuration Release for project RepRapFirmware ****
make all 

15:38:32 Build Finished (took 85ms)
Release folder re-appears. A few .mk files but no .bin.
* Press green tick.
15:39:09 **** Incremental Build of configuration Release for project RepRapFirmware ****
make all 

15:39:09 Build Finished (took 86ms)
A few files in the Release folder appear to get re-written. Still no .bin.

On the problems tab I have lots of the following:

Function 'snprintf' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 274	Semantic Error
Function 'strlen' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 526	Semantic Error
Function 'strlen' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 527	Semantic Error
Function 'strlen' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 549	Semantic Error
Function 'strlen' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 550	Semantic Error
Function 'strnlen' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 510	Semantic Error
Function 'tolower' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 539	Semantic Error
Function 'tolower' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 539	Semantic Error
Function 'va_end' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 475	Semantic Error
Function 'va_end' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 516	Semantic Error
Function 'va_start' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 473	Semantic Error
Function 'va_start' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 514	Semantic Error
Function 'vsnprintf' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 474	Semantic Error
Function 'vsnprintf' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 515	Semantic Error
Function 'WDT_Enable' could not be resolved	RepRapFirmware.cpp	/RepRapFirmware	line 189	Semantic Error


If I go to Project -> C/C++ Index -> Seach for unresolved includes I get the following warning: "Unresolved inclusion: stdio.h"

Edited 3 time(s). Last edit at 12/18/2014 11:04AM by WesBrooks.
Re: Duet + ReprapFirmware build help please.
December 26, 2014 07:26PM
Ugh,

I have three versions of Eclipse now. Four if you include the version that baeyens provide which is already integrated with the Eclipse plug in. Of these only Juno works with the baeyens plug in (almost). Quick rant; the eclipse naming system is stupid. baeyen (eclipse plug in for arduino) only works with 1.5.7. I have every point release from 1.5.4 up to the current 1.5.8 and tried the all because it refused to tell me which version it actually wanted, just that the one I provided wasn't the one it liked.

The fundamental problem appears to be libraries. Why can't we just have a version in GitHub which includes specific versions of the libraries required with all the #includes pointing at the specificly included versions? It seems to be that the arduino infrastructure handles libraries poorly. I imagine it's because C++ is a new language and the first to package bits of code into reuseable, external files, so it's only natural there would be some confusion about how to handle this intelligently. Annoyingly I did do quite a lot of C++ about 20 years ago, but I don't remember libraries being a particular issue. I'm ranting again. Final rant, I have no idea how anyone does any useful work in Eclipse. Everytime I touch the damn thing I come away feeling ill.

So, this page provides some interesting information about libraries and such like in the baeyen plug in.

I've also tried the Visual studio plug in. This has potential, but relies on the Arduino IDE library handling. This has problems because, well it's awful, but specifically it seems to struggle to disambiguate the sam versions of things like networking from the non 32bit versions.

Finally I've tried the arduino ide itself. Again, libraries, libraries, libraries.

I'll try again tomorrow with a clean sheet.
Sorry, only registered users may post in this forum.

Click here to login