Migrate the project of STM32F103 to F105 or F107

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
Insert picture description here
Search function: SetSysClockTo72, modify the frequency division coefficient in the function definition:
Insert picture description here
2. Start file is different
Insert picture description here
3. Change device
Insert picture description here

4. In addition, HD changed to CL, c/c++ added path
Insert picture description here
Insert picture description here
5.
Insert picture description here


6. Reference: Set 103 startup file does not include compilation

https://blog.csdn.net/weixin_45905650/article/details/108600834?utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-6.not_use_machine_learn_pai&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-6.not_use_machine_learn_pai

Guess you like

Origin blog.csdn.net/tjcwt2011/article/details/113009227