cancel
Showing results for 
Search instead for 
Did you mean: 

Region `FLASH' overflowed for external flash

Hello, region `FLASH' overflowed by 424008 bytes but i didn't added much image. I am using 128 Mb N25Q128A13EF840E QSPI flash. I just wanted to confirm how much QSPI is assigned.

I can see below settings for QSPI.

0693W000001stCiQAI.jpg

I want to know that Where should I check in my firmware to know assigned external flash size. I can't find in linker file?

Also I want to see which all data is saved in QSPI 128Mbit .

Any help

26 REPLIES 26

Attaching the entire linker script here

Post adding this, its going for hardfault during GRAPHICS_Init().

0693W000001szmDQAQ.jpg

unable to get reason for it,

Are you setting up the QSPI before starting TouchGFX? setLanguage() will try to read data from external flash now (rather than internal as with your linker script before).

setLanguage function need some input i think. What should i give?

0693W000001t013QAA.jpg

Oh you don't need to call it manually during startup - i was referring to what you saw in the stack trace. You can set the default language from the designer.

Confused .. what can go wrong. Any suggestion ?

I got this video "https://www.youtube.com/watch?v=237lPdMsDZs ". Here first data is moved to QSPI from internal flash. First he changes linker script (which we already did), next he look for external loader option in debug(at 08:23 ). But I am using different IDE System workbench for STM32 so I can't get that option. Can you please check ?

@Martin KJELDSEN​  Did you get the chance to check ?

HP
Senior III

Wait, how do you configure your QSPI?

Are you using the settings you posted in the first picture?

There are two things you need to do:

  1. set the linker script so the ExtFlashSection is actually located in the QSPI region
  2. setup the QSPI so it matches your memory.

In the first picture you have a flash size of '1' - this means that you are using 1 bit for address space effectively limiting your memorysize to 2 bytes..

This is the settings I use for the 746-Disc0 board:

 0693W000001tBrUQAU.png