Question
STM32CubeMX incorrectly generates different .ld files depending on selected Toolchain / IDE
- November 26, 2024
- 2 replies
- 2089 views
STM32CubeMX generates a different .ld file depending on the selection under Project Manager -> Toolchain/IDE, when it should not.
Here are two examples, the first for CMake, and the second for STM32CubeIDE. I added them both to a .zip file.
STM32C071RBTX_FLASH.ld was generated when selecting STM32CubeIDE.
STM32C071RBTx_FLASH.ld was generated when selecting CMake.
Problem
The files should not have been regenerated. IT should have been the same name, with the same content. That two different files are generated shows for a bad implementation in STM32CubeMX for how it generates the .ld file.
