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 aed74f5710 Added lots of comments.
Added comments about the file, specs, compile and build options.
2025-01-24 23:30:39 -08:00
.template_files
build
components
cpputest@c3625dc668
docs
inc moved startup file 2025-01-22 20:48:47 -08:00
linker_scripts Added linker files from stm32cubeide for the g0b1 series. 2025-01-22 20:11:10 -08:00
mocks
src
tests
.clang-format
.gitignore
.gitmodules
CMakeLists.txt removing bad line from include dirs 2025-01-24 23:30:01 -08:00
compile_commands.json
Doxyfile
notes.md Added questions section 2025-01-24 23:30:07 -08:00
otto.sh
README.md Added new stuff to readme todo. 2025-01-20 19:49:41 -08:00
setup.sh
stm32-toolchain.cmake Added lots of comments. 2025-01-24 23:30:39 -08:00

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 startup files.
  • Add messages for case where tool-chain is missing.
  • Check for FreeBSD & Linux compat.
  • Add CMSIS stuff.
  • Add in RTOS stuff.
  • Add in FreeRTOS submodule.
  • Add in Zephyr submodule.
  • Add STM32F4XX support
  • Add STM32G0B1 support
  • Add STM32F1XX support