cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone has reference how to mock RTOS functionality in Model Class for simulation purpose?

BParh.1
Senior III

As we know STM32CubeMX generates MSVC project file .sln for simulation project. I find this is really handy to help developers GUI while waiting for hardware ready.

But it is common data in GUI comes from outside dedicated task, then the Model class need to read in model::tick() whether there is new message in queue. I want to simulate this while waiting for real board to come. But I wonder if this is actually somewhat available somewhere by ST?

So we need a mock functions to simulate FreeRTOS or CMSIS OS wrapper to create, read and write queue.

0 REPLIES 0