diff options
author | dc42 <dcrocker@eschertech.com> | 2017-09-22 23:15:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-22 23:15:31 +0300 |
commit | a8a4d14009f2877d4e76fc7b2e23b15629db2ca6 (patch) | |
tree | 0a809ec883ef077cbb1efd52db335bf223bd2ba6 /BuildInstructions.md | |
parent | 1bf86a532b80777c49ae13cda56c1326ac94de17 (diff) |
Update BuildInstructions.md
New version of gcc used to build firmware 1.20alpha3 and later
Diffstat (limited to 'BuildInstructions.md')
-rw-r--r-- | BuildInstructions.md | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/BuildInstructions.md b/BuildInstructions.md index 8b6f83ff..7d85dfe5 100644 --- a/BuildInstructions.md +++ b/BuildInstructions.md @@ -1,7 +1,11 @@ Instructions for building dc42 fork of RepRapFirmware under Windows =================================================================== -1. Download and install the gcc cross-compiler. A simple way of doing this is to download Arduino version 1.5.8 and install it into folder C:/Arduino-1.5.8. The compiler and associated tools will then be in folder C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\bin. If you already have a later version of Arduino installed including the add-on for SAM processors, you will find the compiler and tools in a different folder, for example C:\Users\<YOUR USER NAME>\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin. +1. Download and install the gcc cross-compiler: + +- To build firmware version 1.20alpha3 and later, you need version 2017-q2-update. You can download an installer for this version from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads. + +- To build firmware version 1.20alpha2 and earlier you need verison arm-none-eabi-4.8.3-2014q1. A simple way of doing this is to download Arduino version 1.5.8 and install it into folder C:/Arduino-1.5.8. The compiler and associated tools will then be in folder C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\bin. If you already have a later version of Arduino installed including the add-on for SAM processors, you will find the compiler and tools in a different folder, for example C:\Users\<YOUR USER NAME>\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin. 2. Download and install Eclipse Oxygen. You do not need the Arduino add-on. @@ -13,16 +17,17 @@ Instructions for building dc42 fork of RepRapFirmware under Windows 5a. If you want to build version 1.19 or later of the Duet WiFi build of RepRapFirmware then you also need to download and add project DuetWiFiSocketServer. Alternatively, just download file src/include/MessageFormats.h from that project and put it somewhere on the include path for RepRapFirmware. -6. Load Eclipse and tell it to import the CoreNG and ReprapFirmware projects (and DuetWiFiSocketServer if you have nicluded it). +6. Load Eclipse and tell it to import the CoreNG and ReprapFirmware projects (and DuetWiFiSocketServer if you have included it). -7. If your compiler and tools are in a folder other than C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\bin, configure the path to the tools in both projects. You will find this in the project settings under C/C++ Build -> Settings -> Cross Settings. +7. If your compiler and tools are in a folder other than C:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q2-update\bin (if building 1.20alpha3 or later) or C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\bin (if building earlier verisons), configure the path to the tools in both projects. You will find this in the project settings under C/C++ Build -> Settings -> Cross Settings. 8. Ensure there is a copy of make.exe on your PATH. If you installed Arduino 1.5.8 into C:/Arduino-1.5.8 then there will be one in C:\Arduino-1.5.8\hardware\arduino\sam\system\CMSIS\Examples\cmsis_example\gcc_arm. -9. Build CoreNG first, then RepRapFirmware. The Duet WiFi and Duet Ethernet builds of RRF use the SAM4E build of CoreNG. The Duet085 build of RRF (which also runs on the Duet06) uses the SAM3X build of CoreNG. The RADDS and Alligartor builds of RRF have their own builds of CoreNG. +9. Build CoreNG first. Then clean and build RepRapFirmware (the clean step is needed to make Eclipse notice that the CoreNG library has been built). The Duet WiFi and Duet Ethernet builds of RRF use the SAM4E build of CoreNG. The Duet085 build of RRF (which also runs on the Duet06) uses the SAM3X build of CoreNG. The RADDS and Alligator builds of RRF have their own builds of CoreNG. Instructions for building dc42 fork of RepRapFirmware under macOS -=================================================================== +================================================================= +[These instructions have not yet been updated to use the newer cgcc version needed by firmware 1.20alpha3 and later.] 1. Download and install Arduino IDE, and start it. @@ -42,4 +47,4 @@ Instructions for building dc42 fork of RepRapFirmware under macOS 9. Build CoreNG first, then RepRapFirmware. The Duet WiFi and Duet Ethernet builds of RRF use the SAM4E build of CoreNG. The Duet085 build of RRF (which also runs on the Duet06) uses the SAM3X build of CoreNG. The RADDS build of RRF has its own build of CoreNG. -D Crocker, updated 2017-09-21. +D Crocker, updated 2017-09-22. |