2024-11-13 11:50 PM
Hello
I have a project with STM32G474CB in CubeMX and it generates the linker script with following:
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
}
But, as I understand, this is only the case when the device is switched into single-bank mode (which is not the default from the manufacturer!). The default would be two 64K flash chunks with second being at offset 0x08040000, am I correct?
Thanks.
2024-11-14 12:25 AM - edited 2024-11-14 12:53 AM
Hello @SMisi
On this, the RM0440 clearly states they're consecutive in single bank mode.
Your question is answered nicely by ST here:
The STM32CubeMX generated script is correct for single bank mode.
THX
Ghofrane