Template for C TDD that uses the cpputest framework/test harness. This template uses Makefiles instead of CMake
Find a file Use this template
jake 533d9ab020 copied over logic from cortex-M4 example repo
I copy pastaed some of the linker setup from another repo I found. Had
to change some stuff as their directory setup is differnt than mine.
2025-01-19 21:36:36 -08:00
.template_files
build
cpputest@c3625dc668
docs
inc
mocks
src Setup /src/CmakeLists.txt for variable usage 2024-11-10 06:37:20 -08:00
tests
.clang-format
.gitignore
.gitmodules
CMakeLists.txt Updated the cmakelists.txt 2024-11-10 06:36:19 -08:00
compile_commands.json
Doxyfile
example.ld Added an example linker file for ref 2024-11-10 12:49:15 -08:00
linker.ld copied over logic from cortex-M4 example repo 2025-01-19 21:36:36 -08:00
otto.sh
README.md new todo item added 2024-11-10 12:49:39 -08:00
setup.sh
stm32-toolchain.cmake

STM32 CMake+CppuTest Template

Requirements

  • An ARM compiler and linker.
  • Bash or a POSIX shell.
  • CMAKE version 3.20 or newer.
  • Cpputest 3.8 or newer.
  • Clangd LSP.
  • Git version control.

Instructions

  1. Clone/copy the repo locally.
  2. Check the requirements to make sure you're development enviroment is ready.
  3. Update the linker script files to target your current uC.
  4. Change line 45 of Doxyfile with the project name.

Running Tests

TODO

  • Create or copy a linker.ld file.
  • Add a startup file for at least the stm32f103c8t6.
  • Add messages for case where tool-chain is missing.
  • Check for FreeBSD & Linux compat.
  • Add in RTOS stuff.