Why I got different LinkerScript.ld depending on project creation options?
I just tried out different way to create a new project with System Workbench.
(1) first one
- File → new → C++ Project → Ac6 Stm32 Mcu Project
- Chips = Stm32F4, Board = Stm32F401C-Disco
- using “Cube Hal”
- but don’t check “Add low level drivers in this project”
- see also https://github.com/Joe-Merten/Stm32-Tools-Evaluation/tree/master/Stm32F4-SW-cubehal
(2) second one
- same as above but
- check “Add low level drivers in this project”
- As sources in the application project
- see also https://github.com/Joe-Merten/Stm32-Tools-Evaluation/tree/master/Stm32F4-SW-cubehal-lib_1st
Then I’d compared the results and wonder why there are such differen LinkerScript.ld in both projects.
In (1), it’s like:
but in (2) its like:
Is this a bug or feature?
Note, that the Stm32F401C-Disco populates a Stm32F401VCT6U.
Edit: Even the code in the startup directory.
In (1), there is a startup_stm32.s commented with:
but in (2) there is a startup_stm32f401xc.s with: