Template for C TDD that uses the cpputest framework/test harness. This template uses Makefiles instead of CMake
Go to file Use this template
Jake Goodwin 73a11f1abd Simplified project name.
Removed some uneeded letters from the project name.
2024-11-10 06:35:47 -08:00
.template_files fixed issue with external linkage of "C" files 2024-03-20 16:10:10 -07:00
build Added empty dirs and hidden placeholders 2024-03-06 20:57:41 -08:00
cpputest@c3625dc668 added cpputest as a git-submodule 2024-03-06 21:29:39 -08:00
docs Added empty dirs and hidden placeholders 2024-03-06 20:57:41 -08:00
inc Added and included the "inc" directory in the project root. Also added in line to include the mocks dir 2024-06-14 13:38:04 -07:00
mocks added an empty cmake file into mocks 2024-03-15 14:23:11 -07:00
src removed whitespace 2024-08-04 09:28:29 -07:00
tests Added comment for automation use. 2024-03-18 19:30:40 -07:00
.clang-format fixed cli flags 2024-08-04 09:27:15 -07:00
.gitignore added more files to ignore 2024-03-12 22:38:22 -07:00
.gitmodules added cpputest as a git-submodule 2024-03-06 21:29:39 -08:00
CMakeLists.txt Added and included the "inc" directory in the project root. Also added in line to include the mocks dir 2024-06-14 13:38:04 -07:00
Doxyfile Simplified project name. 2024-11-10 06:35:47 -08:00
README.md Updated todo items 2024-11-10 06:35:24 -08:00
compile_commands.json added the compile commands symlink 2024-03-12 22:39:28 -07:00
linker.ld Added linker.ld file 2024-11-10 06:35:01 -08:00
otto.sh removed filecheck for formatting file. 2024-08-04 09:28:22 -07:00
setup.sh updated the build_cpputest() shell function 2024-03-06 21:47:04 -08:00
stm32-toolchain.cmake Created STM32 toolchain file 2024-11-07 00:36:49 -08:00

README.md

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.

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.