2021-02-28 01:32 AM
hi...
i want to make a project using QSPI external flash memory to run a code, and FMC SDRAM as data memory... how to do that? i have try FMC SDRAM as Data Memory example project from STM32F746-Disco FW package and debug it using external loader and change .ld file address of FLASH & RAM, it runs but cannot store data in SDRAM. example i store variable a=1, i read it the content variable of a is not same.
thanks before.
2021-02-28 03:34 AM
SDRAM i mean cant be initialised in startup , but in app code, then data loader cant load your set data in compile time.
Here is two solutions you rewrite startup or in app after initialize SDRAM do own routine to copy data init.
But this area can be used for data .
Too your code debug example isnt real, compiler can ooptimize this float to registers or stack and dont use SDRAM here...
2021-02-28 06:20 AM
i want to extend FLASH & RAM size for my code, because my project file bin not fit in internal FLASH and need bigger RAM too.
Can u guide me how to do that?
2021-02-28 06:50 AM
Maybe you need learn more about memory mapped mode, boot order , memory areas and sections and howto define code or data into section...
for example framebuffer
// Use the section "TouchGFX_Framebuffer" in the linker to specify the placement of the buffer
LOCATION_PRAGMA("TouchGFX_Framebuffer")
uint32_t frameBuf[(320 * 240 * 3 + 3) / 4] LOCATION_ATTRIBUTE("TouchGFX_Framebuffer");
or I'm not able to use RAM_D2 section in STM32H743 as frame buffer