Template for C TDD that uses the cpputest framework/test harness.
This template uses Makefiles instead of CMake
.template_files | ||
build | ||
cpputest@c3625dc668 | ||
docs | ||
inc | ||
micro-controllers | ||
mocks | ||
src | ||
tests | ||
.clang-format | ||
.gitignore | ||
.gitmodules | ||
CMakeLists.txt | ||
compile_commands.json | ||
Doxyfile | ||
notes.md | ||
otto.sh | ||
README.md | ||
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
- Clone/copy the repo locally.
- Check the requirements to make sure you're development enviroment is ready.
- Update the linker script files to target your current uC.
- 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