cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746G-DISCO, TouchGFX 4.13.0, STMCubeIDE 1.3.0, FreeRTOS

AD�?b
Senior

Hi!

How to set FreeRTOS for 2 tasks and queue 2?

How to add support in main.c and Model.cpp?

Andrzej

20 REPLIES 20
Karan 123
Senior

Hi,

Please Check Below Image . Hope this helps..

0693W000000WRNkQAO.png

--

Karan

chaaalyy
Senior II

After creation with cubeMX, you´ll find the new "task function" in main.c (scroll far down to find it...). In model.cpp, you can declare the generated queues and semaphores external (as they are already prepared in main.c) and use them, as usual. If you need an example, how to work with freeRtos together with TouchGFX, maybe this could help you:

https://www.youtube.com/watch?v=EbWOv_0Lp-U&t=1855s

Maybe the context (ADC via DMA...) isn´t interesting, but it shows very well the basic principles :)

Hi! I set. I generated the code. But what's next? Andrzej pt., 24 kwi 2020 o 19:41 ST Community napisał(a):
Hi! I did the same as in the uploaded files. How to shorten the update time of the "poster" display? I would prefer to do it in MX by queuing. I don't know how to program it later. Andrzej sob., 25 kwi 2020 o 13:10 Andrzej Dębski napisał(a):

I did not get your question .

Hi!

I did the same as in the uploaded files.

How to shorten the update time of the "poster" display?

I would prefer to do it in MX by queuing. I don't know how to program it later.

 

Where "poster" data comes from and how to want to send ..

"Poster" data comes from functions in main.c. They are sent to the screen.