Skip to main content
jumman_JHINGA
Senior III
Sep 11, 2023 11:09 AM UTC
Question

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

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
Sep 11, 2023 12:08 PM UTC

Hello @jumman_JHINGA ,

Which board and which compiler do you use?

ST Software Developer | TouchGFX
jumman_JHINGA
Senior III
Sep 12, 2023 6:03 AM UTC

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

Tesla DeLorean
Guru
Sep 11, 2023 1:14 PM UTC

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
Sep 12, 2023 6:06 AM UTC

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