See: The difference between STM32F103 and STM32F107
Note:
1. The default crystal oscillator of F103 is 8M, and the default crystal oscillator of F105/F107 is 25M. If you use 25M crystal oscillator for F105/F107, you don’t need to modify this step. If you use 8M crystal oscillator, follow the steps below to modify
Find the stm32f10x.h file, change HSE_VALUE from 25000000 to 8000000
Search function: SetSysClockTo72, modify the frequency division coefficient in the function definition:
2. Start file is different
3. Change device
4. In addition, HD changed to CL, c/c++ added path
5.
6. Reference: Set 103 startup file does not include compilation