CMake how-to

Example Description:

Shows an rsa signature verification, encryption and aes-ctr cipher/deryption. Signed binary is loade to/from readfs.

Few command examples for:

  • gap9_v2

  • freertos

Generate build files (Ninja generator is optional - requires installation of ninja-build package):

CMAKE_GENERATOR=Ninja cmake -S . -B build

Build

cmake --build build

Run

# Without traces
cmake --build build --target run
# with fc traces (for other traces, read gvsoc documentation)
runner_args="--trace=fc/insn"  cmake --build . --target run

Cleanup

rm -rf build