Skip to main content
ananya
Associate II
July 4, 2019
Question

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

  • July 4, 2019
  • 4 replies
  • 1170 views

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
July 4, 2019

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
July 5, 2019

Hello Clive,

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

Martin KJELDSEN
Principal III
July 9, 2019

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
July 9, 2019

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