simulink编译报错找不到\Lib\GCC\arm_cortexm3l_math\libCMSISDSP.a
14 views (last 30 days)
Show older comments
### 正在启动 STM32F103_BK 的编译过程
### 正在为 '模型特定' 文件夹结构生成代码和工件
### 正在将代码生成到编译文件夹中: D:\simulink\STM\STM32F103_BK_ert_rtw
### Invoking Target Language Compiler on STM32F103_BK.rtw
### Using System Target File: D:\Program Files\MATLAB\R2023b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
.......
### Initial pass through model to cache user defined code
.
### Caching model source code
..............................
### Writing header file STM32F103_BK_types.h
### Writing header file STM32F103_BK.h
### Writing header file rtwtypes.h
.
### Writing source file STM32F103_BK.c
### Writing header file STM32F103_BK_private.h
### Writing source file STM32F103_BK_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
.
### TLC code generation complete (took 2.339s).
### 正在保存二进制信息缓存。
### STM32F103_BK 的编译过程因错误而中止。
编译的顶层模型目标:
模型 操作 重新编译原因
================================
STM32F103_BK 失败 代码生成信息文件不存在。
编译了 0 个模型,共 1 个模型(0 个模型已经是最新的)
编译持续时间: 0h 0m 14.185s
错误:Build process stopped at compile stage. Unable to find the following link-only objects that are specified in the build information:
\Lib\GCC\arm_cortexm3l_math\libCMSISDSP.a
0 Comments
Answers (3)
Goutham Varanasi
on 2 Apr 2024
Hi
This is due to the improper installation of support package.
Consider performing the clean - reinstallaiton as mentioned in the following post :
Regards
Goutham
0 Comments
圣君
on 2 Jul 2024
I am tring to generate nad deploy code on my STM32NUCLEOF767ZI board but i met this problem "Build process stopped at compile stage. Unable to find the following link-only objects that are specified in the build information: C:\ProgramData\MATLAB\SupportPackages\R2023b\3P.instrset\cmsis_dsp.instrset\Lib\GCC\arm_cortexm7ldfdp_math\libCMSISDSP.a " and i have done the uninstallation and re-install 3 times according to the mathwork answer"Build process stopped at compile stage. Unable to find the following link-only objects that are specified in the build inform... - MATLAB Answers - MATLAB Central (mathworks.cn)"and "simulink编译报错找不到\Lib\GCC\arm_cortexm3l_math\libCMSISDSP.a - MATLAB Answers - MATLAB Central (mathworks.com)" and the problem still there. Could you pls gibe me some clue?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1725951/image.png)
圣君
on 4 Jul 2024
I have found the reason: because I am using the work computer assigned by the company, there are restrictions on the permissions, and when I use the "Get Add-ons" method to get the supportpackage in MATLAB, the installation process is successful on the surface, but in fact, the library files and other files corresponding to the supportpackage are not installed successfully, so the corresponding files cannot be found in the actual code generation phase of compilation and linking. However, the corresponding libraries of the supportpackage are not installed successfully, so the corresponding files cannot be found in the compilation and linking phases of the actual code generation.
Solution: Instead of using the one-click installer in MATLAB, use the standalone supportpackage installer:
0 Comments
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!