Associate III
June 27, 2026
Question
STM32G474 flash im single bank mode
- June 27, 2026
- 2 replies
- 31 views
I am using STM32CubeIde version 2.1.1, STM32CubeMX version 6.15.0, Segger JLink, and a STM32G474RB chip.
The CubeMX generates a linker file which looks like single bank flash mode, I have uploaded the ioc and ld files.
With CubeProgrammer, I set the option bits to DBANK = 0 for single mode or DBANK = 1 for dual mode.
In every case the debugger stops flash programming at 0x08010000 (64kB), all beyond 0x08010000 reads 0XFFFFFFFF.
That leads to a hard fault right after starting a debugger session.
How can I fix this problem?
And no, I can’t switch to dual mode as the text section file exceeds 64kB, and I can’t update the CubeMX as all versions 6.16 and 6.17 contain a HRTIM configuration bug.
