Linker doesn't put code in external (memory mapped) QSPI Flash
- March 1, 2023
- 2 replies
- 2234 views
I have an STM32F469NI-DISCO (AU1) board, and I need to put a big array (representing a GIF) in the external flash. I created a code attribute at first, and stored this array under the attribute in the external flash, but it won't work: the linker makes the new memory location appear in the compilation summary in the STM32Cube IDE project.
So I tried with the linker generated from another project that was using TouchGFX, and I put my array in the external flash, but again, nothing.
Attached the project file. The array is called "animatedLogo", and is located in the zlogo1.c file. I also redeclared all the macros used in TouchGFX (although I am not using touchGFX here).
I am also aware that the memory configuration in the Init() is not complete, but here the issue is a the compile time. But one step at a time...