Skip to main content
Qqixi.1
Associate II
Dec 8, 2020 2:42 PM UTC
Solved

STM32CubeIDE STM32H750VB QSPI External loader Problem

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!!

0693W000006F0pNQAS.bmp0693W000006F0qLQAS.bmp

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Dec 9, 2020 1:44 AM UTC

Is it designed for your board and the W25Q64, probably not

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

6 replies

Tesla DeLorean
Guru
Dec 8, 2020 10:10 PM UTC

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[] = {

...

};

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Qqixi.1
Qqixi.1Author
Associate II
Dec 9, 2020 12:12 AM UTC

Thanks you very much!!!the problem is solved.but appear new problem.

0693W000006F4s6QAC.bmpisn't my stdlr wrong?

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Dec 9, 2020 1:44 AM UTC

Is it designed for your board and the W25Q64, probably not

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..