- Install Docker
- Clone the repository
- Set the working directory to the repository root
- Build the Docker image:
docker build -t tracker_compiler .
- Build the firmware:
docker run --rm -it -v $(pwd):/usr/local/src/tracker_firmware tracker_compiler
- The firmware will be in the
build
directory
Uploading on windows using openocd and stlink-v2
- Run openocd:
openocd_windows/bin/openocd.exe -s openocd_windows/share/openocd/scripts -f interface/stlink.cfg -f target/stm32g0x.cfg -c "program build/PTR-tracker-C.hex verify reset exit"