In order to flash to a flight controller, you must have a functioning development environment set up for deltaflight, as well as a working build of the deltaflight configurator. Instructions for setting up deltaflight can be found here. In order to build the deltaflight configurator, the repository must be cloned locally, and then you can follow the instructions found here.
- Ensure that both deltaflight and the deltaflight configurator have been properly cloned and installed. Instructions for deltaflight can be found here, and instructions for the deltaflight configurator can be found here.
- Perform a build on the specific firmware version in deltaflight. In CLion, this is done by selecting the correct configuration from the drop down menu located to the left of the "Build" button and then building.
- Locate the generated
.hexfile. If deltaflight was set up through WSL, this could be found in the
find /tmp -name "*.hex"will allow you to search for this file. It may be helpful to copy this file to a more easily accessible location on your machine.
- Run the deltaflight configurator. Instructions can be found here. You should use the Google Chrome instructions.
- Connect your flight controller to your machine. Be sure that the flight controller is in DFU mode. After connecting to your machine, attempt to connect to your flight controller in the iNav/deltaflight configurator. Be sure to be on the "Firmware Flasher" tab, located on the left side of the GUI. If the device is properly connected, the drop down at the top right should say "DFU". It is possible that there may be issues for Windows users. Here is documentation on how to solve these issues.
- Enable the option for "Full chip erase".
- Select the button on the bottom right for "Load Firmware [Local]". You should select the
.hexfile that you located in Step 3.
- Select the "Flash Firmware" button located in the bottom left and wait.
- When the configurator is done flashing, pressing the "Connect" button in the top right should detect your flight controller.
- Congratulations! You have flashed firmware to your flight controller.