The first step: first select chip model that will be used for your model (Model no choice please refer to: https://blog.csdn.net/winux123/article/details/103429574 )
Step two: Replace the startup file: file startup file in the project folder
Depending on which chip type startup file corresponding to the replacement, with reference to the following list
STM32F101xx startup_stm32f10x_hd.s large capacity, STM32F102xx, STM32F103xx
STM32F100xx startup_stm32f10x_hd_vl.s large capacity
startup_stm32f10x_ld.s small capacity STM32F101xx, STM32F102xx, STM32F103xx
startup_stm32f10x_ld_vl.s small capacity STM32F100xx
STM32F101xx startup_stm32f10x_md.s in capacity, STM32F102xx, STM32F103xx
startup_stm32f10x_md_vl.s the capacity STM32F100xx
startup_stm32f10x_xl.s large capacity FLASH STM32F101xx at 512K to 1024K bytes
capacity flash <= 32k selection ld
64k <= <= 128k selected md
256 <= <= 512k selected hd
512K <= <= 1024K selected xl
更改对应的宏定义选项:STM32F10X_XL -》 STM32F10X_HD (对应芯片的容量)
修改晶振为你现在使用的外部晶振:
最后是仿真修改:改为你对应的FLASH大小