STM32 and Simulink: failure at compile time, or: where is my library...
13 views (last 30 days)
Show older comments
Hello all,
I'd like to try and get a basic model/program to run on an STM32 Nucleo H743ZI2. I have the following setup:
- Windows 10
- Matlab 2023b with Simulink and all the bells and whistles
- Simulink Coder Support Package for STMicroelectronics Nucleo Boards
- And the mentioned STM32 Nucleo H743ZI2
Pictured below is my model (warning, dangerously simple):

Building the code doesn't seem to be a problem. Compiling however...is. I'm getting the following message
Build process stopped at compile stage. Unable to find the following link-only objects that are specified in the build information: \Lib\GCC\arm_cortexm7ldfdp_math\libCMSISDSP.a
Somehow, the mentioned library can't be found. Does anyone have a clue why that might be? Thanks in advance!
Kind regards,
Bjorn
Accepted Answer
Hassaan
on 30 Jan 2024
libCMSISDSP.a. This library is part of the ARM Cortex Microcontroller Software Interface Standard (CMSIS).
- Check the Library Path: Ensure that the path to the library is correctly specified in your project settings. The error suggests that it is looking for the library in \Lib\GCC\arm_cortexm7ldfdp_math\. Verify if this path is correct and if the library file actually exists at that location.
- Install the CMSIS-DSP Library: If the library is not present in your system, you might need to download and install it. The CMSIS-DSP library is often included in ARM development environments or can be downloaded from the ARM website or through your development environment's package manager.
- Correct Project Configuration: Make sure that your project is configured for the correct target processor. Since libCMSISDSP.a is specific to ARM Cortex-M7, your project should be set to build for this architecture.
- Library Compatibility: Ensure that the version of the library is compatible with your development environment and toolchain. Sometimes, newer versions of IDEs or toolchains may require updated versions of libraries.
- Rebuild the Project: After making the necessary adjustments, clean your project and rebuild it. This ensures that the build process starts afresh and picks up all the correct settings and paths.
- MATLAB Packages for STM32:

-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Feel free to contact me.
2 Comments
Hassaan
on 13 Feb 2024
@Bjorn You are welcome.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Feel free to contact me.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!