目的:将程序启动地址从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

IAP-修改flash启动地址

 

 system_stm32g0xx.c

IAP-修改flash启动地址

 

 ldscript.ld

IAP-修改flash启动地址

 

 IAP-修改flash启动地址

 

 IAP-修改flash启动地址

 

 

相关文章:

  • 2021-08-13
  • 2021-12-13
  • 2021-08-03
  • 2021-12-02
  • 2021-12-04
  • 2021-12-02
  • 2021-12-06
猜你喜欢
  • 2022-01-19
  • 2021-06-09
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-01-07
相关资源
相似解决方案