Here some instructions on how to compile the dc42 branch of RepRapFirmware for the DuetWifi. This process has been tested with 1.16 but should work down to firmware version 1.10
- Install Eclipse Neon (c/c++) from here: https://www.eclipse.org/downloads/download.php?file=/oomph/epp/neon/R1/eclipse-inst-mac64.tar.gz
- Install Arduino 1.5.8 from here: https://www.arduino.cc/en/Main/OldSoftwareReleases
- Find folder containing arm-gcc-noneabi-gcc (find / -name arm-gcc-noneabi (mine is: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/)
- Git clone all required repositories into a single working directory (CoreNG, Reprapfirmware)
- Start eclipse
- File—>Import—>General—>Existing Project into Workspace.
- Next
- Select cloned git directory (CoreNG)
- In Eclipse go into Project Explorer (open Window—>Show View—> Project Explorer, if Project explorer window is not on screen already)
- Highlight CoreNG.
- Go to Project —> Properties
- Go to C/C++ build —> Environment. Add to Path the path found in step 3. Delete any windows paths. (/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/).
- Go to C/C++ build —>Settings —>Cross Settings—> modify path. Add path found in step 3. Delete any windows paths.
- Confirm with OK.
- Project—> Build All
- Go to Project —> Properties
- Go to C/C++ build —> Build Variables —> Manage Configurations. For the DuetWifi, activate SAM4E8E
- Repeat steps13-16.
- Import RepRapFirmware (steps 6-8)
- Right click on ReprapFirmware —> Properties
- Go to C/C++ Build —> Environment —> modify path: add path found in step 3. Delete any windows paths.
- Apply
- Go to C/C++ build —>Settings —>Cross Settings—> modify path. Add path found in step 3. Delete any windows paths.
- Confirm with OK.
- Build
- Right click on ReprapFirmware —> Properties —> C/C++ Build —> Manage Configurations —> Activate SAM4E_CoreNG
- Repeat steps 21-24
- Clean
- Build