FreeRTOS Tutorial 5 || Simple QUEUE || STM32 || NO CMSIS || CubeIDE

preview_player
Показать описание
________________________________________________________________________________________

How to use Queue to communicate between the tasks in FreeRTOS.

________________________________________________________________________________________

******* SUPPORT US BY DONATING******

*******Join the Membership*******

Рекомендации по теме
Комментарии
Автор

Thanx a lot for your videos! Especialy for beginners frendly English :)

vadims
Автор

When I send data "r" don't have message from function HAL_UART_RxCpltCallback, how to fix this error?
Thank so much

trandangthanh
Автор

i can not send data with uart interrupt i just download your project and run but it does not work !

musaogural
Автор

7:47 did you send some data "111" in xTaskcreate. I mean it is expecting address to variable right?

powerstar
Автор

It is not clear why you initially read the interrupt using HAL_UART_Receive_IT(&huart2, &Rx_data, 1); but then inside the HAL_UART_RxCpltCallback you clear the interrupt with HAL_UART_Receive_IT(huart, &Rx_data, 1); huart in stead of &huart2
But it works??
Also, inside the ISR, you write tohuart, and not &huart2
But either works.
Then, it seems that no matter how big the queue is, at some point it will be full, and xQueueSendToFrontFromISR will return 0.
Is this correct?
Any help appreciated

gman
Автор

great job!!!, Could you also show an example about USB Mass Storage Class
Thank you

ucontrolchannel
Автор

Thank you for the informative video!

However, I do notice something that troubles me with the code after enabling the RX ISR.
Why is it that the interrupt works only at the very beginning (before the queue fills up) and then, it never works again? I found out that for me the function 'xQueueSendToFrontFromISR' returns 0 (ie. pdFAIL) and then, the ISR never sends out the data "123456789" again.

Therefore, the ISR can only do its job one time and only right after program execution starts. How can this be fixed if I would like the ISR to always do its job even if the buffer is full?

jen-meg
Автор

so you use CubeMX to generate the default Code. Than you delete half of it. What is the point?
If you would later use the CubeMX again to initialize a CAN Interface or Timer or whatever, to default code would regenerate and you will have to start deleting again.
Why cant you just use the Standard Code and the already included Libraries?!

phlosen
Автор

another great tutorial... may I ask what is the difference between pdPASS and pdTRUE? in which cases do we get them?

canerboyraz
Автор

It only enters the cut once. When I press 'r' again, it does not interrupt.

musaogural
Автор

How to do it without CubeMX? Can you please explain it?
Thank you

brilianto
Автор

hello. I have a little problem with xQueueCreate function. in my project this function is not determine. i tried to download freertos from site, but this not helped me. if i create queue in cube, so need to work with message queue functions, but i cant (

asifganbayev
Автор

Great video, clear and informative. Why not use CMSIS though?

lukasvozenilek
Автор

why do you use the reddit TTS, what is this clownage

szalonykierowca