Why is "stm32f4xx.h" missing when I try to build my model for the STM32F4 Discovery Board?

33 views (last 30 days)
Why is "stm32f4xx.h" missing when I try to build my model for the STM32F4 Discovery Board?
Here is the associated message from the diagnostic viewer.
In file included from <command-line>:0:0: C:/ProgramData/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/stm32f4discovery/include/stm32f4discovery_wrapper.h:18:10:
fatal error: stm32f4xx.h: No such file or directory #include "stm32f4xx.h" ^~~~~~~~~~~~~ compilation terminated.
This message causes the build process to terminate with the following error:
Error(s) encountered while building "DiagLedLogic_mil": ### Failed to generate all binary outputs.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Oct 2021
Edited: MathWorks Support Team on 13 Oct 2021
This issue could be resolved by installing the STM32F4DISCOVERY Board firmware package following the steps in the "Hardware Setup" pane of the "Embedded Coder Support Package for STMicroelectronics Discovery Boards".
You can open the "Hardware Setup" dialog using the steps found here:
For more information, please visit the following MATLAB Documentation page describing setup and configuration for this support package:

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!