Skip to content

Demo Workspace of Cpputest (C/C++ Unit Test Framework) on STM32 and Keil IDE

Notifications You must be signed in to change notification settings

serbayozkan/Cpputest_stm32_keil_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cpputest_stm32_keil_demo

Demo Application of Cpputest (C/C++ Unit Test Framework) on STM32 uC and Keil IDE.

Getting Started

Cpputest Unit Test Framework Links: http://cpputest.github.io/ https://github.com/cpputest/cpputest

This workspace is generated using STM32CubeMX on STM32F746ZGTx microcontroller. User can easily adapt the Unit Test Framework to the embedded project by taking this demo workspace as a reference.

Notes

User do not have to to configure the workspace settings for this demo application but in order to use this framework on the new generated custom workspace, user should pay attention to expressions mention in below.

  • All source and header file of unit test framework is collected at Middlewares\Third_Party\CPPUTEST
  • ARM Compiler version should be changed to the current version that supports C/C++ compiler. In demo workspace, ARM Compiler V6.12 is used.
  • Language C and Language C++ specs should be changed respectively to c99 and C++14 under the Options -> C/C++ (AC6)-> Language/Code Generation
  • The folder path of unit test framework should be added to Options -> C/C++ (AC6) -> Include Paths
  • C++ Exception feature is disabled as a default when user create a new workspace. The keyword (-fexceptions) should be added to Misc Controls under Options -> C/C++ (AC6)
  • Trace settings should be done to monitor the Test Outputs under Options -> Debug -> Trace. Core Clock and ITM Stimulus Ports settings should be set correctly.
  • fputc_debug.c source file is used to direct printf messages to Debug(printf) viewer.

About

Demo Workspace of Cpputest (C/C++ Unit Test Framework) on STM32 and Keil IDE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published