|
PER Firmware
|
A monorepo of all firmware projects, build tools, and scripts driving the PER vehicle.
common/ - Common libraries shared across the codebasedocs/ - Documentation filesexternal/ - External dependencies and third-party librariessource/ - Source code for each vehicle PCBMost recent doxygen deployment (master branch): https://purdueelectricracing.github.io/firmware/
To compile software for the PER vehicle, make sure your system is set up by following the steps in setup.md if you haven’t already.
Firmware is built using a python-based build system. The python script per_build.py handles CMake configuration and ninja build steps automatically.
To build the firmware, run:
You can view available build targets and options with:
In VS Code, go to View → Run and Debug, select the appropriate MCU target from the dropdown, then press the green ▶️ arrow to flash and live-debug the firmware.
Once everything is , you can build the firmware by pressing:
This triggers the default build task configured in .vscode/tasks.json, which runs the firmware build process automatically.
Make sure you're in the root of the firmware repo (code .) before triggering the build.