Skip to main content
Qqixi.1
Associate II
December 8, 2020
Solved

STM32CubeIDE STM32H750VB QSPI External loader Problem

  • December 8, 2020
  • 6 replies
  • 3827 views

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.
Best answer by Tesla DeLorean

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

6 replies

Tesla DeLorean
Guru
December 8, 2020

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
December 9, 2020

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

0693W000006F4s6QAC.bmpisn't my stdlr wrong?

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
December 9, 2020

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