I’m trying to duplicate your Developing Unit Tests for Raspberry Pi with CppUTest tutorial only for a STM32H7A3 MCU. The project creates fine but when I try to built the project, I get this error:
Severity Code Description Project File Line Suppression State
Error [Clang IntelliSense] Error: Unable to determine timer clock divider for this device. Please remove sampling profiler code from the project or contact support for a hotfix. UnitTest C:\Users\gene\AppData\Local\VisualGDB\EmbeddedEFPs\Profiler\ProfilerDriver_STM32_HAL.cpp 81
I’m not sure how to “remove sampling profiler code”.
In the long run, I’d like to be able to use CppUTest in a project I created with the VisualGDB STM32CubeMX Project Wizard. Is that possible?
Like usual, the answer came to me right after I posted this message. I found the “Exclude sampling profiler code” check box in the project properties and that fixed it. And I also found the Test Framework drop down with CppUTest as a choice. I don’t think CppUTest was there before I built the Rasberry Pi unit test tutorial project but it’s there now. Sorry for the distraction.
This reply was modified 4 months, 1 week ago by GeneM.