2019-01-26 04:38 AM
I build an application using touch GFX ,but I also want to use MCU peripheral to control other things. According to UI data.
Solved! Go to Solution.
2019-01-27 06:55 AM
Hello. Yes, this is very possible to do. Due to some compiler integration issues, it will be best for you to consider at this time, IAR or SW4STM32 compilers only. The others are being debugged and not suitable for your use with CubeMX & TouchGFX.
Please review the following thread:
https://touchgfx.zendesk.com/hc/en-us/articles/205074561-Connecting-the-UI-to-your-system
https://touchgfx.zendesk.com/hc/en-us/articles/205074551-Interfacing-with-physical-buttons
https://touchgfx.zendesk.com/hc/en-us/articles/205717801-The-Screen-Concept-and-Model-View-Presenter
https://www.youtube.com/watch?v=KnJAEpE5iXg
https://www.youtube.com/watch?v=sKVuaD-JOqs
You will have to review the MVP model that was applied with TouchGFX. Model, Viewer, Presenter.
Using this approach, you can send packets of data to / from real hardware or virtual buttons on your LCD display. Study the posted code examples and also review the video posted by Martin (who is a developer of this tool and on this forum). The video is very nice to watch.
Write back if you still have questions or problems.
2019-01-27 06:55 AM
Hello. Yes, this is very possible to do. Due to some compiler integration issues, it will be best for you to consider at this time, IAR or SW4STM32 compilers only. The others are being debugged and not suitable for your use with CubeMX & TouchGFX.
Please review the following thread:
https://touchgfx.zendesk.com/hc/en-us/articles/205074561-Connecting-the-UI-to-your-system
https://touchgfx.zendesk.com/hc/en-us/articles/205074551-Interfacing-with-physical-buttons
https://touchgfx.zendesk.com/hc/en-us/articles/205717801-The-Screen-Concept-and-Model-View-Presenter
https://www.youtube.com/watch?v=KnJAEpE5iXg
https://www.youtube.com/watch?v=sKVuaD-JOqs
You will have to review the MVP model that was applied with TouchGFX. Model, Viewer, Presenter.
Using this approach, you can send packets of data to / from real hardware or virtual buttons on your LCD display. Study the posted code examples and also review the video posted by Martin (who is a developer of this tool and on this forum). The video is very nice to watch.
Write back if you still have questions or problems.
2019-01-27 10:19 PM
Thanks MON2 I will try this option
2019-01-28 05:09 AM
@Chayan Roy , throwing a bit more homework for you that should help on your project.
Please review the following - especially the video by Martin - very much on topic:
On MVP modelling,
V = your LCD screen where you will use the GUI tool to build a button
Use the same TouchGFX GUI tool to launch a virtual routine.
Modify this routine to call the Presenter - this presenter can be considered a "mail man" who takes your packet from the LCD screen to your physical hardware.
The physical hardware is the Model.
Once the model receives this alert packet of data, you will use standard HAL routines to toggle your physical LED.
The examples at the above URL also offer great examples (Pool Demo) for your review and on subject. We have done this but took us a few hours to digest the procedure.
A great video that should clarify the process required to interact hardware with the TouchGFX tools:
https://www.youtube.com/watch?v=jQO7zhX0e0Q
The video is by Martin @Martin KJELDSEN (ST Employee) (a developer from Draupner who created TouchGFX) who monitors this forum.