CppUTest in STM32 project

Sysprogs forums Forums VisualGDB CppUTest in STM32 project

This topic contains 2 replies, has 2 voices, and was last updated by  support 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34280

    GeneM
    Participant

    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?

     

     

    #34281

    GeneM
    Participant

    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.
    #34304

    support
    Keymaster

    Hi,

    No problem, indeed the embedded testing workflow is different from the Linux one. You can find a fairly good overview of the embedded unit tests in this tutorial: https://visualgdb.com/tutorials/tests/arm/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.