2021-05-18 02:29 AM
Hello,
I'm trying to generate with STM32CubeIDE a project generated with TouchGFXDesigner and I encounter a Link Error
To generate, I do the following:
My environment is the following:
Any help would be welcome
Thank you
Antoine
2021-05-18 02:40 AM
In STM32CubeIde project option, I found:
By default it is "checked"
Unchecking it do not change anything! :(
2021-05-18 04:34 AM
Just to be sure, after generating code from STM32CubeMX you will also need to generate code from TouchGFX Designer.
/Romain
2021-05-18 05:17 AM
Yes,
In TouchGFXDesigner I click on "Generate Code" (F7), otherwise, there are some files missing.
After that I use MX to generate Code, and then finaly IDE
Antoine
2021-05-18 05:38 AM
Exactly, I fear you missed a step: whenever you generate code from CubeMX you need to re - generate code from TouchGFX Designer right after.
2021-05-18 06:17 AM
Ok! So...
I found a "methode" to correct the error.
In the project properties:
In the tab "Libraries (-l)", there is ":libtouchgfx-float-abi-hard.a"
I though the ":" was an error. So I removed it, and put it back as the lib with no more found.
After that, it work... no idea why!!
The link command before the modification was:
--start-group -l:libtouchgfx-float-abi-hard.a -l -Wl,--end-group
After, it became:
--start-group -l:libtouchgfx-float-abi-hard.a -Wl,--end-group
Antoine
2021-05-18 06:44 AM
Same error even after regenerating with TouchGFX Designer
2021-05-18 06:48 AM
Good to hear it works now. This is intriguing, I was not able to reproduce your issue. What process did you follow to work with STM32CubeIDE ? Did you just double click on the generated project ?
/Romain
2021-05-18 06:52 AM
It is like the linker try to like with 2 libraries, but only one is known, and the second is left "blank"
2021-05-18 07:01 AM
In the project properties:
There are 2 lines:
Strange!
Removing the second line also resolve the error