2020-12-08 06:42 AM
I want used QSPI flash running program. W25Q64, used stldr file is ok,but always have problem,Build error,region FLASH overflowed by 31220bytes,I have a big photo array,more than internal flash 128k,I search before post,change this flash.ld file?I have no idea.Could you please help me?
Thanks!!
Solved! Go to Solution.
2020-12-08 05:44 PM
Is it designed for your board and the W25Q64, probably not
2020-12-08 02:10 PM
You'd need to modify the .LD to add a QSPI section, if not already present.
You'd then __attribute__ the static/const allocation in the compiler to direct it into the QSPI section.
Something along the lines of:
/* Specify the memory areas */
MEMORY
{
...
FLASH_QSPI (rx) : ORIGIN = 0x90000000, LENGTH = 8192K
...
}
...
/* Constant data goes into QSPI FLASH */
.roqspidata :
{
. = ALIGN(4);
*(.roqspidata) /* .roqspidata sections (constants, strings, etc.) */
*(.roqspidata*) /* .roqspidata* sections (constants, strings, etc.) */
. = ALIGN(4);
} >FLASH_QSPI
...
__attribute__((section(".roqspidata")))
static const unsigned char buffer[] = {
...
};
2020-12-08 04:12 PM
Thanks you very much!!!the problem is solved.but appear new problem.
isn't my stdlr wrong?
2020-12-08 05:44 PM
Is it designed for your board and the W25Q64, probably not
2020-12-09 04:51 AM
very thankful�?I will check this file,
2021-01-01 03:23 PM
This is the External Loader for the W25Q64B on the MCUDEV DevEBox H750 board (should also work with the H743 model)
#MCUDEV #DEVEBOX #STLDR
2021-01-30 01:28 AM
hi,,, how u can have done built it? i have try building samething , from st video guidance but failed...
in several step i have testing qspi function is done, then when i build stldr and built in st-utility it alwasy failed when mass erase , sector and programming