Skip to main content
ananya
Associate II
Jul 4, 2019 10:10 AM UTC
Question

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

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. 

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
Jul 4, 2019 11:39 AM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
ananya
ananyaAuthor
Associate II
Jul 5, 2019 11:52 AM UTC

Hello Clive,

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

Martin KJELDSEN
Principal III
Jul 9, 2019 1:17 PM UTC

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
Principal III
Jul 9, 2019 1:19 PM UTC

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