Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

karmelek96/ptr-tracker-firmware

Repository files navigation

MOVED

https://github.com/PTR-projects/PTR_tracker_firmware

Building the firmware

Building using Docker

  1. Install Docker
  2. Clone the repository
  3. Set the working directory to the repository root
  4. Build the Docker image:
docker build -t tracker_compiler .
  1. Build the firmware:
docker run --rm -it -v $(pwd):/usr/local/src/tracker_firmware tracker_compiler
  1. The firmware will be in the build directory

Uploading on windows using openocd and stlink-v2

  1. 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"