How to flash QSPI-Flash of STM32F746G-Discovery, or to create a binary file for ST-LINK
Hello,
I want to execute large (over 1MB) code on STM32F746G-Discovery. So, I want to flash my code to QSPI-Flash, but I have failed.
I wrote LinkerScript.ld as
/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 307K
...(snif)
QSPI_FLASH (rx) : ORIGIN = 0x90000000, LENGTH = 4096K
EXT_RAM (xrw) : ORIGIN = 0xC0000000, LENGTH = 8192K
}
...(snif)
.genCode :
{
. = ALIGN(4);
*/foobar.o (.text .text*) # sample name
...(snif)
. = ALIGN(4);
} >QSPI_FLASH
.genData : {
. = ALIGN(4);
*/foobar.o (.rodata .rodata*) # sample name
...(snif)
. = ALIGN(4);
} >QSPI_FLASH
...(snif)
I build binary file foobar.bin (sample name) and it’s size is 2,283,945,064 (0x88223C68) bytes. From it, I got an elf file and it’s size is 3,186,360 bytes.
I don’t know how to flash QSPI-Flash by System Workbench for STM32 and don’t know how to create a binary file for ST-Link.
What should I do?
Best Regards,
Katsuhiro Mihara