2024-08-13 02:17 AM
STM32H743VGT6 has 1M FLASH, but the flash memory is divided into two independent banks.
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
FLASH2 (rx) : ORIGIN = 0x08100000, LENGTH = 512K
Now my code size is bigger.
The section .text is over 512K.
So,How can I allocate .text to FLASH and FLASH2???
2024-08-13 03:31 AM
Why do you think the independent banks are a problem? if you're trying to link a large program and getting an error or warning, you should shows us what it is. If you're not getting an error, what's the problem?
2024-08-13 03:54 AM
Hello @SDFSDFDSF ,
Please let us know if you have any build errors.
Otherwise, allocating the .text section to both FLASH and FLASH2 requires modifying the linker script to specify the memory regions and how the .text section should be allocated.
You can add .text sections for FLASH2 as follows:
.text2 :
{
. = ALIGN(4);
*(.text2*)
. = ALIGN(4);
} > FLASH2
Hope this helps!
Thanks,
Rim.