admin管理员组文章数量:1410705
I want to use the X-CUBE-CRYPTOLIB (CMOX) of my STM32 in Keil and installed it properly and selected my required modules. I can use the functions, header files etc. But if I want to compile, I am always getting the linker error saying it can't find the crypto lib even though I can 100% confirm the file is there.
..\file.axf: error: L6002U: Could not open file ..\STM32CubeExpansion_Crypto\Middlewares\ST\STM32_Cryptographic\lib\libSTM32Cryptographic_CM0_CM0PLUS.a : No such file or directory
Even copying the file to several folders of the project doesn't work. I also tried to use an absolute path instead of relative but no difference (also because Keil seems to automatically turn it back into a relative path). I also tried linking the using the compiler flag --libpath [path to .a file]
as the documentation suggests.
All in all it really seems like it just can't open the file for some reason. It might even be an internal linker error.
I want to use the X-CUBE-CRYPTOLIB (CMOX) of my STM32 in Keil and installed it properly and selected my required modules. I can use the functions, header files etc. But if I want to compile, I am always getting the linker error saying it can't find the crypto lib even though I can 100% confirm the file is there.
..\file.axf: error: L6002U: Could not open file ..\STM32CubeExpansion_Crypto\Middlewares\ST\STM32_Cryptographic\lib\libSTM32Cryptographic_CM0_CM0PLUS.a : No such file or directory
Even copying the file to several folders of the project doesn't work. I also tried to use an absolute path instead of relative but no difference (also because Keil seems to automatically turn it back into a relative path). I also tried linking the using the compiler flag --libpath [path to .a file]
as the documentation suggests.
All in all it really seems like it just can't open the file for some reason. It might even be an internal linker error.
Share edited Mar 11 at 9:43 halfer 20.4k19 gold badges109 silver badges202 bronze badges asked Mar 10 at 8:26 JakobJakob 1,9352 gold badges16 silver badges31 bronze badges 8 | Show 3 more comments1 Answer
Reset to default 1Thanks to artless-noise-bye-due2AI for suggesting the the working solution in the comments.
The solution was to extract the .a
file using e.g. 7zip and import all extracted .o
files into Keil.
本文标签:
版权声明:本文标题:c - Keil Linker Error L6002 with X-CUBE-CRYPTOLIB: Could not open file libSTM32Cryptographic_CM0_CM0PLUS.a : No such file or dir 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744856540a2628808.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
.a
is are archive. You should be able to extract (using-x
option) the .o files inside and try to use them directly. Either as a solution and/or to help diagnose the issue. – artless-noise-bye-due2AI Commented Mar 11 at 12:53