Skip to content

ERBO-Engineering/cmake-stm32

Repository files navigation

CMAKE stm32F4 example 2022 Ceedling Test and Code Coverage

To build install:

Run: without vscode magic ;)

  1. git submodule update --init
  2. mkdir build && cd build
  3. cmake ..
  4. cmake --build . -- -j 16
  5. enjoy

Run: With vscode magic

  1. To run and forget (execute the flash task)
  2. To debug F5

Fallback source: https://dev.to/younup/cmake-on-stm32-the-beginning-3766 https://github.com/ObKo/stm32-cmake

If you want to use an older version of openocd (0.10.0) is the one you get by the ubuntu apt archives, Then you need to add a different override regex in your launch.json (Marus/cortex-debug#166)

Testing coverage

Made for the blogpost "Unlock Embedded Software Testing with Ceedling & VSCode" Where we step by step guide you through the process of setting up the ceedling test framework and writing your first tests.

Unlock Embedded Software Testing with Ceedling & VSCode

gcov code coverage

screenshot of testing explorer ceedling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages