Skip to main content
PŚwie.1
Associate II
June 7, 2021
Solved

How to send data from touchGFX GUI to main task

  • June 7, 2021
  • 1 reply
  • 2229 views

Hello,

How can I send data from touchGFX screen to main task? I have action on click button which calculate me data, but I'm not sure how can I send calculated data to my main program.

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

    You may find this tutorial interesting:

    How to update other tasks from the TouchGFX GUI

    1 reply

    Maurizio1
    Associate II
    June 7, 2021

    How are you running TouchGFX? Are you using any OS? How did you create your multiple tasks?

    PŚwie.1
    PŚwie.1Author
    Associate II
    June 7, 2021

    I'm using FREERTOS CMSISv2 (auto generated program in designer for my stm). I have task where I send data via queue to Model in touchgfx. I have data in model and on my screen, but I want send them back to main core of application. I'm not sure how to do it. Should I make queue to main like I did queue to main or what?

    Maurizio1
    Associate II
    June 9, 2021

    That's what I would do, yes.

    There is a chapter on queues in the RTOS manual.