Hack Club jolts - learn to build real things

Search

Firmware

Now you can either write your firmware through STM32CubeMX/VSCode or use STM32duino.

#STM32CubeMX

After you have received your board, you need to write the firmware to communicate with the STM32.

#Switch the toolchain to Makefile

  • From STM32CubeMX, go to the Project Manager section, then click on Toolchain / IDE and select Makefile. This allows you to use VSCode or any other code editor to edit the files much more easily without having to use ST's software.

    Toolchain makefile

  • Now click the Generate Code button at the top and download/install any packages that are required.

#Open in VSCode and install the STM32 extension

  • After that's done, open VSCode and open the software directory. You're also going to want to install this extension to make building the software much easier:

    VSCode STM32 extension

  • Then you should see this button on the side:

    VSCode STM32 sidebar

  • This will allow you to build and flash your flight controller all from VSCode!

    VSCode build and flash

#STM32duino

Follow the instructions in the GitHub.