Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 880 Bytes

File metadata and controls

49 lines (35 loc) · 880 Bytes

cpp_binary_size

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.

Dependencies

  • CMake >= 3.22
  • Ninja
  • renode
  • puncover
  • openocd

Supported boards

  • STM32F4DISCOVERY Discovery kit

Partially supported boards

  • Arduino UNO R4 Minima
  • SiFive HiFive1 Rev B

Usage

Setup build enviroment

$ cmake --preset stm32f4-MinSizeRel-Custom
$ cd build/stm32f4-MinSizeRel-Custom

build and emulate firmware

$ ninja emulate_iostream

build and flash firmware to target board

$ ninja flash_iostream

build, flash and read experiment duration in microseconds

$ ninja read_timer_iostream