Skip to main content
jumman_JHINGA
Senior III
September 11, 2023
Question

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

  • September 11, 2023
  • 4 replies
  • 1593 views

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".

This topic has been closed for replies.

4 replies

Osman SOYKURT
ST Technical Moderator
September 11, 2023

Hello @jumman_JHINGA ,

Which board and which compiler do you use?

ST Software Developer | TouchGFX
jumman_JHINGA
Senior III
September 12, 2023

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

Tesla DeLorean
Guru
September 11, 2023

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
jumman_JHINGA
Senior III
September 12, 2023

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