Skip to main content
AMege
Associate II
July 5, 2019
Solved

Does TouchGFX support mbed framework?

  • July 5, 2019
  • 6 replies
  • 4036 views

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.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

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

6 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
July 9, 2019

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

Martin KJELDSEN
Principal III
July 9, 2019

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

AMege
AMegeAuthor
Associate II
July 9, 2019

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

Martin KJELDSEN
Principal III
July 10, 2019

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

AMege
AMegeAuthor
Associate II
July 10, 2019

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?

AMege
AMegeAuthor
Associate II
July 10, 2019

In other words, when I click the "Generate Code" button, how can I control what HAL layer is used?

AMege
AMegeAuthor
Associate II
July 10, 2019

@Martin KJELDSEN​  just to enlighten you about mbed, the STM32F469DISCOVERY board is supported: https://os.mbed.com/platforms/ST-Discovery-F469NI/

Martin KJELDSEN
Principal III
July 11, 2019

Hi @AMege​!

Yes, there are quite a lot of STM32 boards supported. As it is discussed in the other thread you shared, camerons suggestion is exactly what you should do. Start with the mbed port for your board and then integrate TouchGFX. I can assist with that if you're willign to do the work.

/Martin

AMS
Associate
July 16, 2019

Hi @Martin KJELDSEN​ ,

I would like to give this a try with my STM32F429 Disco board. As this board is also supported with Mbed.

I would like some route map and suggestions on how can i proceed with this.

Thanks,

Aashik

AMege
AMegeAuthor
Associate II
July 10, 2019