Skip to content
Sergey Krasilnikov edited this page Feb 14, 2024 · 8 revisions

Short description

Firmware repos store source code for VRS device programs and could be used to build firmware images for folowing devices:

  • FormulaWheel-1
  • FormulaWheel-2
  • WheelBase
  • Pedals
  • BleHid

Each repo has common folder sturcture:

  • Source
    • Firmware
    • Bootloader
  • Deps

The 'Sources' folder contains .c and .cpp files for build main app firmware and a bootloader. The 'Deps' folder includes a dependency submolule for the project. 'Deps' refers to a separate repo 'DirectForceDeps' which included in the project as a dependent repo.

Local builds

Each repo could be built locally in two ways:

  • STM32CubeIDE
  • Local build scripts (.bat files)

Since some of the repos have build dependencies (do not mess with the dependency repo) with each other (e.g. build for 'FormulaWheel' will need 'BleHid' repo build as well), they should be located in the same directory level in order to make build scripts work properly. The 'DirectForceEncryption' repo should be also cloned and located on the same level in order to encrypt built binaries.

Local builds could be run with .bat files in the repo root folder. Encryption procedures has their own .bat files as well.

Build configurations

All projects have 'Debug' and 'Production' build configurations. Build scripts are programmed to build and encrypt only 'Production' configs. The 'Debug' configuration should be built only in STM32CubeIDE for debug purposes.

Clone this wiki locally