Does TouchGFX support mbed framework?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-05 8:13 AM
Currently TouchGFX generates code (my target is a STM32F469 DISCOVERY board) that is based on the ST CubeMX framework. Is the 'mbed' framework on the roadmap, since I like it *a lot* better.
Solved! Go to Solution.
- Labels:
-
Mbed
-
STM32F4 Series
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-09 5:39 AM
Hi @AMege​,
TouchGFX does not directly support any framework. It is an independent framework and rendering mechanism. CubeMX helps configure projects so that what is required for TouchGFX to run (memory, LTDC, display, etc) are available.
Does that answer your question?
Best regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-09 5:39 AM
Hi @AMege​,
TouchGFX does not directly support any framework. It is an independent framework and rendering mechanism. CubeMX helps configure projects so that what is required for TouchGFX to run (memory, LTDC, display, etc) are available.
Does that answer your question?
Best regards,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-09 8:47 AM
To be more precise:
What you would do is use the mbed framework to do what you want and then maybe present some data in your TouchGFX application. Check https://community.st.com/s/question/0D50X0000AU4zodSQB/interfacing-with-hardware-in-touchgfx-applications for inspiration on how to interface with hardware and generally present data coming from other tasks.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-09 9:14 AM
Hi Martin,
thank you for your response, however I fail to understand how the generated code from TouchGFX, heavily using the CubeMX HAL layer to access the board resources can be replaced with the mbed HAL layer??
I already know how to interface with hardware in a TouchGFX application (both ways), but that was based on a project that did not use the mbed framework.
The mbed framework is a much higher level API than the ST CubeMX HAL drivers (that I don't like very much).
Regards,
/Antoine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-10 12:09 AM
Hi Antoine,
What i'm trying to say is that TouchGFX does not really care about which HAL you're using. It only requires some memory to render frames into and that you've set up whatever display interface you're using to transfer the pixels rendered to that buffer to the display. That's why you can take a TouchGFX GUI and run it on SDL2 simulator and on any hardware configuration that matches the dimensions of the application.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-10 2:34 AM
I understand, but I don't know how to "strip" the CubeMX generated code from the TouchGFX project and replace it with the mbed HAL layer.
Are there howtos for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-10 2:42 AM
I guess there aren't any .. yet :) Do you really need CubeMX in this case? Anything you configure will be configured using STs HAL. If you start from one of the application templates from inside the designer i think this will become more apparent to you. Look into BoardConfiguration.cpp.
Let me know!
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-10 2:43 AM
In other words, when I click the "Generate Code" button, how can I control what HAL layer is used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-10 3:05 AM
"Do you really need CubeMX in this case?"
No, I don't
"Look into BoardConfiguration.cpp."
Ok, but this is generated code, how can I control the generation process so it produces a different BoardConfiguration.cpp?
Or do I need to "hack" this file and every time I use "Generate Code" loose my changes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-10 3:54 AM
BoardConfiguration.cpp is not generated code. It's a part of the port for the particular board when coming from our application templates.
/Martin
