Compile DuetWifi Firmware on Mac with Eclipse

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

  1. Install Eclipse Neon (c/c++) from here: https://www.eclipse.org/downloads/download.php?file=/oomph/epp/neon/R1/eclipse-inst-mac64.tar.gz
  2. Install Arduino 1.5.8 from here: https://www.arduino.cc/en/Main/OldSoftwareReleases
  3. 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/)
  4. Git clone all required repositories into a single working directory (CoreNG, Reprapfirmware)
  5. Start eclipse
  6. File—>Import—>General—>Existing Project into Workspace. 
  7. Next
  8. Select cloned git directory (CoreNG)
  9. In Eclipse go into Project Explorer (open Window—>Show View—> Project Explorer, if Project explorer window is not on screen already)
  10. Highlight CoreNG.
  11. Go to Project —> Properties
  12. 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/).
  13. Go to C/C++ build —>Settings —>Cross Settings—> modify path. Add path found in step 3. Delete any windows paths. 
  14. Confirm with OK.
  15. Project—> Build All
  16. Go to Project —> Properties
  17. Go to C/C++ build —> Build Variables —> Manage Configurations. For the DuetWifi, activate SAM4E8E
  18. Repeat steps13-16.
  19. Import RepRapFirmware (steps 6-8)
  20. Right click on ReprapFirmware —> Properties
  21. Go to C/C++ Build —> Environment —> modify path: add path found in step 3. Delete any windows paths.
  22. Apply
  23. Go to C/C++ build —>Settings —>Cross Settings—> modify path. Add path found in step 3. Delete any windows paths. 
  24. Confirm with OK.
  25. Build
  26. Right click on ReprapFirmware —> Properties —> C/C++ Build —> Manage Configurations —> Activate SAM4E_CoreNG
  27. Repeat steps 21-24
  28. Clean 
  29. Build
Posted in 3D Printing and tagged , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.