How to enable External Data Reader and DMA2D (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-03 2:02 AM - edited ‎2024-01-08 12:20 AM
Hello everyone,
I encountered a problem while using TouchGFX. I want to use an external Flash which is connected via QUADSPI.
The Flash works fine (manually loading and writing some informations into the memory). Block mode, Memory Mapped mode, both do not create a problem.
But now I want to take the next step and integrate it into my custom project with TouchGFX.
I want to store the images and so on in the external Flash. I saw the function "External Data Reader" in CubeMX.
But in my project the enable option is greyed out. I don't know why.
(TouchGFX Version 4.21.3, CubeMX 6.8.0)
I "solved" the problem. If the DMA2D is disabled, I can choose the external data reader. But Why?
Chrom-ART respectively DMA2D is "nice to have".
If you could help it would be really nice.
Thank you really much.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-09 5:19 AM
Oh I see, sorry for my confusion.
The reason you cannot use them at the same time is that DMA2D will access your flash as memory mapped, but External Data Reader is used when you have a non-memory mapped and you want to access it as a memory mapped one. So, if you want to have DMA2D enabled, you need to make your flash memory mapped and not use the External Data Reader to access it.
I hope I have answered your question
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-09 2:56 AM
Hello @MWetter ,
There is a guide for how to enable External Flash in your custom project. You can find it here:
Please follow the instructions and if you still face some issues, don't hesitate to ask for help.
Good luck
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-09 3:57 AM
Hi @Mohammad MORADI ESFAHANIASL,
The External Flash memory is already working perfectly fine. I can enter every mode and can read/write or both.
My question is:
Why are the External Data Reader and ChromART mutually exclusive?
You can select both individually but not together.
Thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-09 5:19 AM
Oh I see, sorry for my confusion.
The reason you cannot use them at the same time is that DMA2D will access your flash as memory mapped, but External Data Reader is used when you have a non-memory mapped and you want to access it as a memory mapped one. So, if you want to have DMA2D enabled, you need to make your flash memory mapped and not use the External Data Reader to access it.
I hope I have answered your question
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-10 2:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-12 4:19 AM
You're very welcome :D
ST Software Developer | TouchGFX
