cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N657 TouchGFX RAM/ROM Overflow.

siddum
Associate II

Dear ST Community Team,

We are currently working on a project using the STM32N657X0H3Q1 microcontroller and developing the GUI application with TouchGFX.

While configuring and generating the TouchGFX project, we are encountering RAM and ROM overflow errors during compilation/linking. The internal SRAM and Flash available on the STM32N657 device are not sufficient to accommodate the TouchGFX framework, graphics assets, and application code.

As an alternative solution, our hardware design includes the following external memories:

  • External RAM: S80KS5123GABHB020

  • External Flash (Octal SPI NOR): S28HS512TGABHM0100

We would like guidance from the community on the following points:

  1. How to properly configure external RAM in STM32CubeMX / TouchGFX so that:

    • Framebuffers

    • TouchGFX heap

    • Graphics buffers are placed in external RAM instead of internal SRAM.

  2. How to configure external Flash to store:

    • TouchGFX assets (images, fonts, videos)

    • Read-only GUI resource to reduce internal Flash (ROM) usage.

  3. Any recommended linker script modifications or memory mapping examples specific to STM32N657 for placing code/data in external memories.

  4. If there are any ST reference projects, application notes, or example repositories for STM32N6 series demonstrating TouchGFX with external RAM and external Octal SPI Flash.

We would appreciate any guidance, example configurations, or best practices to resolve the RAM and ROM overflow issues using external memory.

Thank you for your support.

Best regards,

Siddu Marka.

2 REPLIES 2
JohanAstrup
ST Employee

Hello @siddum.

I would recommend you to have a look at the STM32N6570-DK TBSs available in TouchGFX Designer for reference.

JohanAstrup_0-1767877353034.png

The TBSs are configured to use O-SPI flash for the TouchGFX assets. By default, the framebuffers are located in internal SRAM in the TBSs. However, it is easy to change this to PSRAM in the linker script since the PSRAM is already configured.

Best regards,
Johan

JohanAstrup
ST Employee

Hello @siddum.

Have you been able to make any progress?

Best regards,
Johan