Unit Testing STM32
Hello everyone,
I'm posting here because I have an issue in my project. We've developed a board with an STM32 processor, and I would like to perform hardware tests on one side (not difficult so far) and, on the other side, be able to execute purely software unit tests without the need to use the board (doing everything on PC).
My code uses a structure that encapsulates all the hardware functions in a specific file. I've attempted to use a different compiler from cubeIDE to execute code directly on the PC, as described here:
https://michael.kafarowski.com/blog/unit-testing-with-stm32cubeide/
It works well for very simple code. I've tried using the cmock tool to simulate my hardware part, but I always encounter inclusion problems.
Has anyone successfully achieved abstraction hardware part? Could you provide me with some advices?
Thank you, Yvan
