This page covers how to compile the firmware. These instructions are based on the new 3.2 unified firmware.
Preparation of software
- Download and install VSCode.
- Open VSCode and open the extension tab (this can be done by using the shortcut Ctrl+Shift+X) and search for windows-arm-none-eabi. Install the version by metalcode-eu.
- Download and install git.
- Then download and install make. Use the “complete package except sources” version. Once installed you will need to add the location of the bin folder that is installed in to your windows path environment setting. Make sure you add them to the system variables and not the user varaibles. While there also add the location of mkdir.exe, which will have been installed with git. It can be found in the usr/bin folder where git is installed. Once thats done, close VSCode and then reopen it.
- Close VSCode
- Download and install latest GNU Arm Embedded Toolchain. Tick the box at the end to install it to your PATH.
Preparation of firmware code
Download the following github repositories. The preferred method for doing so is by using a git client (terminal or GUI). This allows for changes made to be tracked. My client of choice (jay_s_uk) is gitkracken.
- RRFBuild - The main project for building
- RepRapFirmware - the main RRF source code
- RRFLibraries - Support libraries for RRF
- CoreLPC - MCU specific support for LPC builds
- CoreSTM32F4 - MCU specific support for STM32F4 builds
- FreeRTOS - RTOS support package
- DuetWifiSocketServer - WiFi interface
Clone all of the repositories into the RRFBuild folder.
The resulting structure should look like this.
Building the firmware
Go file -> open folder and browse to the RRFBuild folder.
Once opened, the firmware can be built using terminal -> run build task and picking the type of build you want to make.