2024-12-10 03:24 AM - last edited on 2024-12-10 09:01 AM by Andrew Neil
Hi,
I encountered a linker error at the end of the compilation of the TFM_SBSFU_Boot project within the TFM solution when upgrading to the GNU Tools for STM32 12.3.rel1 toolchain via CubeIDE. The specific error message is: 'ld.exe: link errors found, deleting executable `TFM_SBSFU_Boot.elf'.'
As a temporary solution, I had to revert back to the GNU Tools for STM32 11.3.rel1 version using the Toolchain Manager. Additionally, on Windows systems, I found that starting CubeIDE with administrative privileges was essential to prevent the software from freezing.
Do you have a solution to prevent future CubeIDE updates from causing this error again?
Thanks
2024-12-10 08:12 AM
More details, please? Can you share the build log? What are the linker errors preceding "ld.exe: link errors found, deleting executable"? Freezing when doing what?
2024-12-10 08:35 AM
The freeze occurs during the installation of a toolchain using CubeIDE's Toolchain Manager. I'm using Windows 10. If I don't run CubeIDE as an administrator, the toolchain installer freezes when trying to install additional toolchains. This is just a heads-up for anyone else who might encounter this issue.
There is no other error than the one I have pointed out.
Downgrading to an older toolchain version resolves the 'ld.exe: link errors found, deleting executable' issue. I added the verbose option to the linker command, but I didn't get any additional information (no warnings or errors).
I've observed that only the TFM_SBSFU_Boot project is affected. The projects TFM_Appli_Secure, TFM_Appli_NonSecure, TFM_Loader_Secure, and TFM_Loader_NonSecure compile successfully.