ThreadX Queues STM32 Made Easy: Step-by-Step Startup Tutorial

  Рет қаралды 546

PR TechTalk

PR TechTalk

Күн бұрын

In the 3rd video of our ThreadX tutorial series, we'll dive into Queues.
Learn how to use Queues in ThreadX for efficient communication between threads.
We build on the last project that we created on Semaphores and add 2 more Tasks: Temp and UART and one Queue.
The Temp Task uses DTS ( I explained this in another video link below) to get a temperature value, this is then put on the queue and picked up by UART task that sends it using UART.
Video links
ThreadX 1: • ThreadX on STM32 Made ...
ThreadX 2: • ThreadX Semaphore STM3...
DTS Tutorial: • STM32 DTS Tutorial: Di...

Пікірлер: 11
@diwakarm251
@diwakarm251 26 күн бұрын
Thanks for the video sir
@prtechtalk416
@prtechtalk416 22 күн бұрын
Your Welcome. Dont forget to hit the Subscribe also ( it is free of charge :-) ) /PR TechTalk
@diwakarm251
@diwakarm251 21 күн бұрын
@@prtechtalk416 can you please suggest me the boards having risc -v processor which supports threadx , I need to do port threadx for risc-v based architecture boards.... Please suggest?
@prtechtalk416
@prtechtalk416 20 күн бұрын
Hi, my experience with Risc-V is quite limited (Read non existing) . But after some Googling perhaps take a look at www.sifive.com/boards/hifive1-rev-b. But i prefered if you stick with STM32 :-) /PR TechTalk
@peterrosenquist6653
@peterrosenquist6653 28 күн бұрын
Very good videos! Thank you. Question about memory location for stacks is there any advantage / disadvantage to declare them static vs have them in a tx byte pool?
@prtechtalk416
@prtechtalk416 28 күн бұрын
Hi Peter thanks for your comment. As always their is not only benefits from selecting one their is also drawbacks. So what to use is up to you as desinger but it´s good that their are alternatives. So base on the below statements i would select Static if i had ram enough, and in case i where low on ram resources get a bigger MCU or use tx_byte-pool. In my example i clearly made the stacks to big but i have enough memory so no harm in this. Static Allocation: Offers simplicity, performance, and predictability, but lacks flexibility and can lead to inefficient RAM usage. tx_byte_pool Allocation: Provides flexibility and efficient RAM usage, but adds complexity and potential performance overhead. /PR TechTalk
@AndreaBasilico-eo4pl
@AndreaBasilico-eo4pl 27 күн бұрын
fantastic video! I have a couple of questions: 1) I'm using queues by sending pointers instead of data, it works great but the tx_byte_allocate function can't be used inside an ISR, how can i handle this? 2) my intent is to accumulate data/pointers in a queue and empty it every now and then with a thread, however I noticed that if the thread producing the data is more frequent/has a higher priority the second thread gets stuck in the loop trying to empty the queue , what is the correct approach? thank you !
@prtechtalk416
@prtechtalk416 27 күн бұрын
Hi Andrea and thanks for your comment. Firstly their is no Correct approach, only mor or less good way to do things 🙂. I need to jump question 1 for now i need to think about this. Reg 2 i would change the priority on the consumer task so it gets a fair chanse to keep up with the producing task. You could also read up on the tx_thread_relinquish command that might be usefull. /PR TechTalk
@AndreaBasilico-eo4pl
@AndreaBasilico-eo4pl 27 күн бұрын
@@prtechtalk416 thank you for your kind response! i'm trying to build in my mind a "method" to use with the RTOS , its my frist experience with an RTOS. i will for sure give a look at the the tx_thread_relinquish command! thank you !
@alfredobadillo2280
@alfredobadillo2280 4 күн бұрын
​@@AndreaBasilico-eo4pl necesitas aumentar la capacidad de tu cola o la stack de tu thread si tu consumidor tiene una baja prioridad.
@AndreaBasilico-eo4pl
@AndreaBasilico-eo4pl 2 күн бұрын
@@alfredobadillo2280 thank you for your advice!
WebServer on STM32 based on Threadx NetXDuo. Demo application
11:35
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 13 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 10 МЛН
ThreadX on STM32 Made Easy: Step-by-Step Startup Tutorial
23:37
PR TechTalk
Рет қаралды 2,9 М.
Tutorial On ADC MultiChannel Interrupt method.
28:15
PR TechTalk
Рет қаралды 1,6 М.
Advanced Analog-to-Digital Conversion Techniques : STM32 ADC TIMER Trigger
6:53
I Melted Wood With Friction
8:44
The Action Lab
Рет қаралды 970 М.
STM32 Multi ADC DMA method
29:42
PR TechTalk
Рет қаралды 4,8 М.
I made a file explorer... again...
13:01
Tienne_k
Рет қаралды 16 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 26 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,1 МЛН