Skip to main content
Associate II
March 16, 2024
Solved

Touchgfx with external nor flash using fmc

  • March 16, 2024
  • 6 replies
  • 3810 views

Hello Everyone,

I have 24 bit Display having 800 x 480 resolution.

Also,

I have fmc interface having stm32h753bit6 microcontroller with nor flash mt28ew128aba1lpc of 16MB and external sdram of 8MB .

External SDRAM is working fine with touchgfx as double frame buffer config.

I want to store touchgfx images in this nor flash using fmc interface.

Can anyone help me in how to interface nor flash using fmc?

This topic has been closed for replies.
Best answer by GaetanGodart

Hello @Shashikant_Hiremath ,

 

If you flash assets without TouchGFX then use TouchGFX, TouchGFX won't know where the assets are located.
I am afraid flashing the assets using Segger then using TouchGFX is not posisble.

Can I ask you why you want to do such manipualtion?

 

Regards,

6 replies

GaetanGodart
Technical Moderator
March 18, 2024

Hello @Shashikant_Hiremath ,

 

Have you seen this article about using FMC with TouchGFX? Using FMC with TouchGFX 

How do you configure your external SDRAM?

Can you tell us exactly what is blocking you?

 

Regards,

Associate II
March 18, 2024

Hello @GaetanGodart ,

The configuration is as follows:

Display:24bit rgb 800x480

Display interface: LTDC with touchgfx and Dma2d enabled.

External Memory interface: sdram and nor flash both uses fmc.

My question is I want to store touchgfx images in nor flash using fmc interface?

I don't know exact steps to be done to get it working using flasher/debugger with project settings may be in linker file and all.

I'm using stm32cubeide.

 

Thanks 

GaetanGodart
Technical Moderator
March 19, 2024

Hello @Shashikant_Hiremath ,

 

I have looked at the MCU you are using.
It has quadSPI which is recommended to use when possible for better performances.

Here is the official guide on how to interface a flash memory as external memory using quadSPI : quadSPI flash guide 

I hope you are able to follow along and set up your memory!

 

Regards,

Associate II
March 21, 2024

Hello @GaetanGodart ,

Right now i don't have QSPI in my PCB Board .
I have only mt28ew128aba1lpc NOR Flash which is a CFI Flash type that uses FMC interfacae with microcontroller.
So I need to work on with this interface  only as of now.

Thanks in advance!

GaetanGodart
Technical Moderator
March 21, 2024

Hello @Shashikant_Hiremath ,

 

Ok I understand.

I think the guide still stands as it gives each steps to follow, you will just have to adapt the communication protocol.

I would be glad to help you if you have a specific issue.

 

Regards,

Associate II
March 22, 2024

Hello @GaetanGodart ,

Can you help me in FMC intialzation for NOR flash for downloading images via jlink flash or jlink script?

GaetanGodart
Technical Moderator
March 25, 2024

Hello @Shashikant_Hiremath ,

 

Can you please explain in detail what you want to do, what you have tried and why you are blocked so I can help you?

I am not the most familiar with FMC initialization and I think it is a question about STM32CubeMX but I can try my best to help you.

 

Regards,

Associate II
March 25, 2024

Hello @GaetanGodart ,

Microcontroller with MT28EW128ABA1LPC with FMC interface i can read and write using HAL libraries in code.
As Touchgfx images needs to be stored in Flash which is not possible in internal flash memory due to low memory size of 2MB.

my display takes single image size of 1.1MB so for me in order to use display with images/ touchgfx assets for GUI development it needs external flash memory. So we had MT28EW128ABA1LPC this as now external flash.

Now my point is i want to store/ place these assets of touchgfx in flash through jlink debugger(as a external loader) before actual application is downloaded through jlink in internal flash.

https://wiki.segger.com/Generic_IDE#Using_the_J-Link_Flash_loader
This link will give you an idea that i'm trying to say.

Thanks

GaetanGodart
GaetanGodartBest answer
Technical Moderator
March 27, 2024

Hello @Shashikant_Hiremath ,

 

If you flash assets without TouchGFX then use TouchGFX, TouchGFX won't know where the assets are located.
I am afraid flashing the assets using Segger then using TouchGFX is not posisble.

Can I ask you why you want to do such manipualtion?

 

Regards,

GaetanGodart
Technical Moderator
April 16, 2024

Hello @Shashikant_Hiremath ,

 

It has been a long time.

Were you able to move forward and solve your issue?

 

Regards,