Customizing the Linker Script to place Code/Data in user defined sections
Sorry Amit, I was not clear.
There are several ways to get the starup file :
- You can get it from the Cube FW package especially in the following folder : ...\STM32Cube_FW_XX_VY.Y.Y\Drivers\CMSIS\Device\ST\STM32XXxx\Source\Templates\gcc, but you have to download the Cube FW package corresponding to your chip and it could be boring;
- The other way (I enjoy it because it is easy) is to create another C project (in the same workspace as you main project). You just have to create a dummy and empty project. Eclipse will create few files and especially the file you are looking for = startup_stm32.s. To do so : Right-click in the Project Explorer window >> New >> C Project >> Project Name + Ac6 STM32 MCU Project + Ac6 STM32 MCU GCC >> Next >> Next >> Select the Series & Board >> Next >> No firmware >> Finish
In the new C project there is a Startup folder. It contains the startup file startup_stm32.s corresponding to the chip serie and board previously selected.
You just have to copy the Startup folder with its file into your project.
Feel free to comment if I am not clear again