Skip to main content
fronders
Associate III
October 17, 2023
Question

[BUG] CubeMX removes linker library search path on code regeneration

  • October 17, 2023
  • 1 reply
  • 1812 views

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.

fronders_0-1697538843631.png

UPD: found out it only happens if there are no libraries in the include list

This config gets regenerated okay (from another project):

fronders_0-1697552243655.png

And this config gets library search path wiped on regeneration

fronders_1-1697552270393.png

 

I need the library search path to include extra linker scripts located elsewhere

 

This topic has been closed for replies.

1 reply

Technical Moderator
October 24, 2023

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.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
awiernie
Associate III
January 25, 2024

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...