cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SDRAM instead of SRAM memory in STM32F429I-Eval board.

ananya
Associate II

How to use SDRAM instead of SRAM memory in STM32F429I-Eval board as the touchgfx generated files need more memory , IAR 7.4 IDE is used. 

4 REPLIES 4

Add in the BSP files for SDRAM, initialize in SystemInit(), and change the memory mapping passed to the linker.​

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

Hello Clive,

Can you please elaborate on the changing the memory mapping passed to the linker..

Martin KJELDSEN
Chief III

Hi @ananya​,

All you have to do is pass a pointer to TouchGFX HAL that points to somewhere in external memory. like 0xC0000000, and then pass that pointer to HAL, e.g.

hal.setFrameBufferStartAddress((uint16_t*)frameBuf0, 16);

Martin KJELDSEN
Chief III

Whereas if you wanted to supply the address of a framebuffer in internal ram you would simply allocate that memory statically (array of e.g. uint16_t) and pass a reference to that.

/Martin