This project has the object of collecting interesting C++ examples that impact the resulting binary size of applications, specially on bare metal microcontrollers.
Moreover, this project additionaly provides a build system for comparing, flashing and emulating the generated firmwares.
- CMake >= 3.22
- Ninja
- renode
- puncover
- openocd
- STM32F4DISCOVERY Discovery kit
- Arduino UNO R4 Minima
- SiFive HiFive1 Rev B
Setup build enviroment
$ cmake --preset stm32f4-MinSizeRel-Custom
$ cd build/stm32f4-MinSizeRel-Custombuild and emulate firmware
$ ninja emulate_iostreambuild and flash firmware to target board
$ ninja flash_iostreambuild, flash and read experiment duration in microseconds
$ ninja read_timer_iostream