Customizing the Linker Script to place Code/Data in user defined sections
Hi,
I am a lazy guy, so to get the startup file I create a new eclipe empty project :
- 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 startup folder 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.
The startup file templates are available in the Cube FW package. For example :
...\STM32Cube_FW_L4_V1.5.0\Drivers\CMSIS\Device\ST\STM32L4xx\Source\Templates\gcc