cancel
Showing results for 
Search instead for 
Did you mean: 

How to Store Background image into SDRAM instead of QUADSPI in Touchgfx?

JJhin.1
Senior

Hello guys!

Is anyone knows how to store background image of touchgfx into SDRAM. 

 

I have tried changing linker script ... but while dumping the the, in builds logs im getting 

"Reading from SDRAM 0xD010000l: Verify failed".

4 REPLIES 4
Osman SOYKURT
ST Employee

Hello @JJhin.1 ,

Which board and which compiler do you use?

Osman SOYKURT
ST Software Developer | TouchGFX

You will need to change the linker script to stage the content in QUADSPI and then put code in startup.s to move the data.

You need to create two MEMORY areas for the SDRAM/QUADSPI, and then add SECTION's to describe the content and placement

  .sdram_data :
  {
    . = ALIGN(4);
    _ssdram_data = .;        /* create a global symbol at sdram_data start */
    *(.sdram_data)           /* .sdram_data sections */
    *(.sdram_data*)          /* .sdram_data* sections */

    . = ALIGN(4);
    _esdram_data = .;        /* define a global symbol at sdram_data end */
  } >SDRAM AT> QUADSPI /* Ends up in SDRAM, staged in QUADSPI */

 

 

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

hii @Osman SOYKURT  im using waveshare Core7xxi Board and cube IDE.

Hii @Tesla DeLorean  thanks for helping me, you given linker script, what code i should have to add in the startup.s ?