目的:将程序启动地址从0X08000000改成0X08002000,偏移8K flash地址空间。
过程:需要修改三个文件ldscript.ld stm32g031xx.h system_stm32g0xx.c。
我的工程目录路径:
E:\st_code\LaserController_SW\Arduino_Core_STM32\Arduino_Core_STM32-2.0.0\system\Drivers\CMSIS\Device\ST\STM32G0xx\Include\stm32g031xx.h
E:\st_code\LaserController_SW\Arduino_Core_STM32\Arduino_Core_STM32-2.0.0\system\Drivers\CMSIS\Device\ST\STM32G0xx\Source\Templates\system_stm32g0xx.c
E:\st_code\LaserController_SW\Arduino_Core_STM32\STM32G031G8\ldscript.ld
stm32g031xx.h
system_stm32g0xx.c
ldscript.ld