2022-02-26 07:59 PM
I am trying to set up an embedded test framework in STM32 Cube IDE. Ceedling framework works properly when there is no dependency on external libraries. However, when trying to mock any HAL library the compilation process fails.
Thank you
2022-02-27 01:34 AM
The error is pretty self-explanatory: you need to insert a preprocessor symbol through command line (-D for gcc) defining the particular mcu you are targeting, see inside stm32f4xx.h.
Alternatively, you can provide that symbol directly by modifying stm32f4xx.h, by uncommenting one of the lines which are there for exactly that purpose.
JW