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

Yes, I tried with these QSPI setting but still not working. 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. Have you also done steps shown in video ?

@Martin KJELDSEN​  Still didn't find solution. Also In generated code, I am trying to look for code, where QSPi is configured in memory mapped mode but unable to find it. Does CUBEMX do it or i need to write it by myself ?

Usually in the BSP library code, if constructed on the fly​, check the MSP code.

Should​ set up QSPI memory, pins and peripheral, then mapping into 0x90000000 memory space, with read command that executes when you access the memory space.

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

Yes I already setup QSPI memory, pins and peripheral in STMCUBEMX but not sure if it put QSPI in memory mapped mode. Can't able to find that in generated code.

You need to enable memory mapped mode manually! Check our the application templates we have (e.g. F746-DISCO, or anything with QSPI) - you''ll see that we set memory mapped mode in a user code section. Something like:

  BSP_QSPI_MemoryMappedMode();

@Martin KJELDSEN​  I tried that, I am facing one issue,  QSPI Memory mapped mode data different value compare to flashed data. Created new post on this issue, Can you please check ?

Thanks

@Martin KJELDSEN​  Forgot to add link.

https://community.st.com/s/feed/0D53W00000EllbkSAB