2023-10-17 03:35 AM - edited 2023-10-17 07:20 AM
I have a project created with CubeMX v6.8.0 and HAL L4 v1.17.2. Using Windows 10 x64
Today I wanted to update it using CubeMX v6.9.2 and HAL L4 v1.18.0, and when regenerating, CubeMX wiped the linker settings "Library search path". I remember this happenning earlier too
Here's the diff from .cproject file after regeneration.
UPD: found out it only happens if there are no libraries in the include list
This config gets regenerated okay (from another project):
And this config gets library search path wiped on regeneration
I need the library search path to include extra linker scripts located elsewhere
2023-10-24 06:58 AM - edited 2023-10-24 06:58 AM
Hello @fronders,
First of all, I would like to thank you for your post.
I tried to reproduce your request. In fact, I have created a project using CubeMX v6.8.0 and CubeIDE 12.0.
Then I added the link of the library indicated in the screenshot.
I made the migration to CubeMX 6.9.2 and I generated the code to CubeIDE 13.2, but the problem is not reproduced and there is no loss of the library path.
I suggest that you provide more information in order to identify the defect cause.
Thanks.
Mahmoud.
2024-01-25 04:05 AM
I have a similar problem with both, CubeIDE 1.13 and 1.14. One library path is modified and gets a wrong path. I will post it on an extra topic because the problem is not exactly the same...
2024-03-11 11:20 AM
@Mahmoud Ben Romdhane I still get this on CubeMX v6.10.0 with CubeG0 v1.6.2 this time with another project. The library search path had a ".." path which was removed. I normally add this path so I can include some extra linker files located at the root of the project.
2024-03-14 03:24 AM
Hello @fronders ,
I have just reproduced your request, and the issue was not noticeable as discussed.
I made a simple project with STM32G030C6T6, and I have included this library:
"libSTM32Cryptographic_CM0_CM0PLUS.a"
After generating the code and upgrading the firmware from FW_G0 V1.6.0 to FW_G0 V1.6.2.
I am able to find the same lib and the library search path was not removed.
Thanks.
Mahmoud.