Skip to main content
psilvaggio
Associate III
October 14, 2024
Solved

How to store video in external flash in TouchGFX?

  • October 14, 2024
  • 1 reply
  • 1116 views

In TouchGFX Designer, images can be easily be stored in external flash by designating the Section to ExtFlashSection within the program itself. As far as I can tell there is no way to do this for videos using the user interface.

 

I know the images are designated to external flash using "LOCATION_PRAGMA("ExtFlashSection")" within the image's .cpp file. Is this the appropriate statement for video files and where should the statement be placed? There is no video.cpp file, there is a video.bin file and a reference to it in the VideoDatabase.hpp file.

 

Thank you.

Best answer by Mohammad MORADI ESFAHANIASL

Hello @psilvaggio,

TouchGFX will automatically place the videos in the ExtFlashSection, therefore, you don't need to handle it. 

Don't hesitate to ask more questions if you have any!

Best regards,

1 reply

ST Employee
October 16, 2024

Hello @psilvaggio,

TouchGFX will automatically place the videos in the ExtFlashSection, therefore, you don't need to handle it. 

Don't hesitate to ask more questions if you have any!

Best regards,

Associate III
January 23, 2025

HI,

Can I place some portions of the Touch GFX application code inside the external flash, the code for screens? I am using an  External quad SPI flash  for Storing Assets, Can the same thing be used for storing the Application code of Touch GFX using keywords like  

LOCATION_PRAGMA("Ext Flash Section")

KEEP

 

Thanks

GaetanGodart
Technical Moderator
January 23, 2025

Hello @jijomathew ,

 

It should be possible to store the "program's code" in external memory just like the assets.

To do so, make sure your microcontroller suppoprts XIP (eXecute In Place).
Then you will have to modify the memory mapping, linker script, bootloader and IDE configuration.
This is quite a bit of work for something that is not usually recommended.

It is better to have the program's code in internal memory because it will make your program faster and usually there is enough space to store it.

 

Regards,