Skip to main content
Associate II
June 10, 2026
Question

STM32G External Loader The External Loader Wrote to the Wrong Address

  • June 10, 2026
  • 1 reply
  • 17 views

I have an external loader with a starting address of 0xA0000000. I can perform read and write operations with this loader using CubeProgrammer. However, when I define the external loader via CubeIDE, it programs the address 0x080000000.

 

 

Here is my flash.ld

 

The external loader starts working when I start it with the external loader address 0x00000000, but I want to start with 0xA0000000. How can I fix it ?

1 reply

ST Employee
June 10, 2026

Hello ​@atilkicioglu,

The issue is that CubeIDE is programming 0x08000000 (internal flash) instead of your external flash at 0xA0000000.

I recommend you check these two official ST wiki articles, they cover the full external loader creation process:

The stm32-memory-loaders GitHub repo also has ready-to-use STM32G4 examples to use as a starting base.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Dor_RH