STM32 and Simulink: failure at compile time, or: where is my library...

13 views (last 30 days)
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
  7 Comments
Cristhian Chavez
Cristhian Chavez on 14 Feb 2024
Thank you both for your help. I could fix the problem after reinstalling MATLAB, Simulink Coder, Embedded Coder Support Package for ARM Cortex-M Processors and Simulink Coder Support Package for STMicroelectronics Nucleo Boards.
Kind regards,
Cristhian

Sign in to comment.

Accepted Answer

Hassaan
Hassaan on 30 Jan 2024
libCMSISDSP.a. This library is part of the ARM Cortex Microcontroller Software Interface Standard (CMSIS).
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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
Bjorn
Bjorn on 13 Feb 2024
Sorry for my late response, but I got it to work! One of the support packages -Embedded Coder Support Package for ARM Cortex-M Processors- was not installed correctly. Reinstalling fixed the issue.
Thank you for your answer!
Kind regards,
Bjorn
Hassaan
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.

Sign in to comment.

More Answers (0)

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!