Zephyr 101 - Getting Work Done with Threads, Work Queues and Timers

  Переглядів 7,815

Circuit Dojo

Circuit Dojo

День тому

nRF9160 Feather & More: www.jaredwolff.com/store/
Have a more detailed questions?: community.circuitdojo.com
Buy me a coffee ☕: ko-fi.com/jaredwolff
Github Sponsors: github.com/sponsors/circuitdojo
Relevant links
Zephyr Homepage: zephyrproject.org
Zephyr Github: github.com/zephyrproject-rtos...
Let me know what you think in the comments. Thanks 🙏

КОМЕНТАРІ: 33
@martinlesyo
@martinlesyo 2 роки тому
These videos are golden, thank you for sharing Jared 😀
@CircuitDojo
@CircuitDojo 2 роки тому
Thanks @​martinlesyo! Glad you found it useful.
@ksathara
@ksathara Рік тому
Fantastic work mate. Helped me a lot.
@CircuitDojo
@CircuitDojo Рік тому
Glad it helped :)
@frandumont8883
@frandumont8883 2 роки тому
I really needed this basic stuff to get the grasp of threads in zephyr... sometimes the documentation is not that clear. Thanks
@CircuitDojo
@CircuitDojo 2 роки тому
Glad you found it useful!
@markopetek9419
@markopetek9419 Рік тому
Thank you for your work. It saves Zephyr docs browsing time. 👌
@CircuitDojo
@CircuitDojo Рік тому
You're welcome!
@bruno963852
@bruno963852 Рік тому
hello again from Brazil! Thank you for sharing this knowledge!
@CircuitDojo
@CircuitDojo Рік тому
Hello there!
@francoisgervais1
@francoisgervais1 Рік тому
1 by 1 your tutorials get useful to me, thank you very much!
@CircuitDojo
@CircuitDojo Рік тому
Glad they’re helping! :)
@nicoladellino8124
@nicoladellino8124 Рік тому
Very nice video Jared, TNX.
@CircuitDojo
@CircuitDojo Рік тому
You're welcome :)
@yaghiyahbrenner8902
@yaghiyahbrenner8902 2 роки тому
thank you for this subscribed!
@CircuitDojo
@CircuitDojo 2 роки тому
You're welcome. Glad it helped. 😎
@manavkashyap91
@manavkashyap91 Місяць тому
hey how can i start or stop the thread defined in one file from another file
@alanturing454
@alanturing454 Рік тому
thank you
@CircuitDojo
@CircuitDojo Рік тому
You're welcome
@yaronshragai2970
@yaronshragai2970 2 роки тому
Thanks for the video! When would you use a delayed work item vs. a timer event?
@CircuitDojo
@CircuitDojo 2 роки тому
Oooh good question. It depends on if you want to use a work thread to do the work versus a dedicated or other thread. I'll noodle on it some more.
@m.fatihturkoglu1848
@m.fatihturkoglu1848 Рік тому
Hello, thanks for the video. I just have one question. In my project, i submitted a work and i wanted to do some task just after that work is done. As i looked up in zephyr's official site i couldn't find any related function for that purpose. I wanted to check if my task is done or not so i can do tasks right after that. Is there a way to do that or a function mybe i have not seen ? Thanks.
@CircuitDojo
@CircuitDojo Рік тому
I would submit another work task at the end of the work task in question. You should be able to queue the next task within the current work function.
@aarondunkin9050
@aarondunkin9050 Рік тому
You state that the System Work Queue priority is the "Lowest application priority by default" but this conflicts with the Zephyr documentation that states its the lowest cooperative which means its actually a higher priority than all application tasks. When looking through the API, I can see the default set as -1 which would be higher than all application priorities as the documentation describes.
@CircuitDojo
@CircuitDojo Рік тому
Thanks for the clarification Aaron
@aarondunkin9050
@aarondunkin9050 Рік тому
@@CircuitDojo Great video though! Just something I had to look into to explain behavior I was seeing.
@pavitrabhade9800
@pavitrabhade9800 Рік тому
Sir, how to find the time for execution of a particular function?
@CircuitDojo
@CircuitDojo Рік тому
Hi Pavitra, One thing that you can do is save the uptime before and after the execution of the function you'd like to check. k_uptime_get is the API call for it. It returns the # of milliseconds since boot. That may not be useful though for faster execution functions. You may need to enable the tracing functionality to get more fine grained information about your execution environment. I've played with it in the past a little but didn't get too far with it. If there's enough interest maybe I'll do a video on that in the future.
@iamcalledusman
@iamcalledusman Рік тому
nice video ! Is there any video you can for memory reduction in ncs sdk ? I was using nf52833 (128kb)then have to switch to nrf52820 (32kb). So memory overflows. due to small SRAM size Can you guide me in this regard ? thanks
@CircuitDojo
@CircuitDojo Рік тому
Great suggestion. It’s tough on those smaller chips. (It was tough with the original SDK!) I’ll see what I can come up with. 😎
@iamcalledusman
@iamcalledusman Рік тому
@@CircuitDojo thank you so much for consideration
@user-oi2ib6rs4z
@user-oi2ib6rs4z 11 місяців тому
Great video. Thank you. How does K_MSGQ_DEFINE fit into this? I have seen it examples/code.
@CircuitDojo
@CircuitDojo 11 місяців тому
That allows you to allocate a message queue which can be helpful for moving data from one thread to another in a safe manor. I often use it to pass a specific event struct for processing/publishing.
Zephyr 101 - Thread Control
20:16
Circuit Dojo
Переглядів 2,1 тис.
Zephyr 101 - Async UART
25:56
Circuit Dojo
Переглядів 1,4 тис.
Повістки у Києві: «Яке право вони мають забирати всіх мужиків?» #війна #мобілізація #військові
00:41
Слідство.Інфо | Розслідування, репортажі, викриття
Переглядів 1,6 млн
Zephyr 101 - Using the Device Tree
19:06
Circuit Dojo
Переглядів 6 тис.
1 - Embedded Systems: Getting Started with renode
13:31
Embedded Systems, in Pyjama!
Переглядів 3,8 тис.
Introduction to the Zephyr RTOS
1:04:31
Nordic Semiconductor
Переглядів 43 тис.
FASTEST Way To Learn Coding and ACTUALLY Get A Job
10:44
Brian Cache
Переглядів 836 тис.
Zephyr 101 - Creating a BLE Service
29:40
Circuit Dojo
Переглядів 1,1 тис.
The Simple Solution to Traffic
5:14
CGP Grey
Переглядів 38 млн
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Переглядів 1 млн
Zephyr Project: RTOS Start-up and Initialization Flow - David Leach, NXP
34:28
The Linux Foundation
Переглядів 8 тис.
Пп десерт за три минуты. Который покорил меня
0:39
Пп десерт за три минуты. Который покорил меня
0:39
Рыбаки придумали очень интересный способ ловли рыбы
0:24
в ожидании поклевки
Переглядів 9 млн
Мужчина нашел секретный объект внутри горы
0:41
Скрытые факты
Переглядів 5 млн
Cosa Buena #brico #automobile #mecanico #coches #liquimoly
0:13
ModesTito
Переглядів 15 млн