Add #include for your peripheral acces layer into Syscalls.c (stm32f4xx.C/C++ Build -> Settings -> Tool Settings -> C++ Compiler -> Symbols -> add CPPUTEST_STD_C_LIB_DISABLED.C/C++ Build -> Settings -> Tool Settings -> C++ Linker -> Libraries -> add "CppUTest".C/C++ Build -> Settings -> Tool Settings -> C++ Linker -> Library search path ->.Select your debugging tool (ST-LINK in my case).
#Atollic truestudio debug configuration is already running download
Before you download and debug your application you need to configure the debugger and you do this in the Debug Configuration dialog that you can access from the Run menu.
This outputs a libCppUTest.a file in your library's Debug folder.
C/C++ Build -> Settings -> Tool Settings -> General -> Runtime Library -> Reduced C and C++.C/C++ Build -> Settings -> Tool Settings -> C++ Compiler -> General -> C++ standard -> gnu++98.C/C++ Build -> Settings -> Tool Settings -> C++ Compiler -> Symbols -> add CPPUTEST_STD_CPP_LIB_DISABLED.C/C++ Build -> Settings -> Tool Settings -> C++ Compiler -> Directories -> add /include.In your library's src folder edit IEEE754ExceptionsPlugin.cpp line 31 so it looks like this: #ifdef CPPUTEST_USE_FENV (this turns off support for floating-point enviroment).Open the UtestPlatform.cpp you have just copied and substitute the lines 259-288 with lines 198-218 from src/Platforms/Keil/UtestPlatform.cpp (this makes all mutex functions just dummies).From CppUTest root directory: Copy src/Platforms/Gcc/UtestPlatform.cpp to your library's src folder.From CppUTest root directory: Copy all sourcefiles from src/CppUTest and src/CppUTestExt to your library's src folder.