cancel
Showing results for 
Search instead for 
Did you mean: 

Using SDRAM as ExtFlashSection for TouchGFX

NKieg.1
Associate III

Hello!

I successfully created a user interface on an STM32F469I-DISCO which looks rather neat.

However, with only a few icons it uses, the memory is already about 80% full. That's why I tried to use the embedded SDRAM to store the data required for the layout. I added the SDRAM to the linker file using the following :

SDRAM		(xrw)	: ORIGIN = 0xC0000000, 	LENGTH = 16M

The embedded SDRAM is supposed to be 128Mbit but I test with only 16Mbit.

However, when I place the ExtFlashSection for TouchGFX inside the SDRAM with

ExtFlashSection :
	{
		*(ExtFlashSection ExtFlashSection.*)
		*(.gnu.linkonce.r.*)
        . = ALIGN(0x4);
	} >SDRAM
 
  BmpCacheSection (NOLOAD) : { *(BmpCacheSection) } >SDRAM
  TouchGFX_Framebuffer (NOLOAD) : { *(TouchGFX_Framebuffer) } >SDRAM
  TouchGFX_Framebuffer1 (NOLOAD) : { *(TouchGFX_Framebuffer1) } >SDRAM
  TouchGFX_Framebuffer2 (NOLOAD) : { *(TouchGFX_Framebuffer2) } >SDRAM

the display shows crap.

I attached two pictures, one which shows how the screen is supposed to look and one showing the display after placing stuff inside the SDRAM. Did anyone encounter this issue before? When yes, what had been done?

0693W000007DcNbQAK.jpg0693W000007DcNMQA0.jpg 

Thank you a lot,

Nicolas Kieger.

6 REPLIES 6
MM..1
Chief II

Your idea is fail. And too your lines 8-11 is for me puzzle.

Primary you need learn how memory is for what usable. Extflash section in TouchGFX design is for graphics const data, when you redefine in to SDRAM ,after reset data not exist, need preload from FLASH then you have same data on two places...

Second miss must be your config, because 2M FLASH can store perfect amount of graphics in 24bit colorspace. When you need more use L8 formats for store images.

Thank you for your reply !

So there is no "easy" way to store the TouchGFX graphics in the SDRAM?

I will take a look at L8 formats too, that may resolve my problem !

Thank you :)

SDRAM isnt retained when power off, then cant store anything between power off, but can store temporary any data, graphics too for example images loaded from network or extracted from jpeg ...

These are not in my requirements right now, I just wanted to store my assets in there but I will try by lowering the color depth to be able to change format, thank you !

Ok then extflash is designed for extflash , when you have big amount of graphics use external SPI or QSPI chip.

I also looked into that but didn't find any useful help. Is it difficult to set up ?