How can I program the microcontroller for multi-thread?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-01 12:35 PM
I want to disassemble the ADC function and BLE data transmission asynchronously.
So, I want to program the microcontroller using multi-thread.
When I coded BLE, It look already used multi-thread but I couldn't understand it exactly.
Is there any example of this?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-02 6:10 AM
Hello,
There is a MOOC for FreeRTOS on ST Youtube : https://www.youtube.com/playlist?list=PLnMKNibPkDnExrAsDpjjF1PsvtoAIBquX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-01 1:02 PM
Hi @KKIM.6​
Firstly, You need to implement an RTOS, then, for example, you can add your threads in the main.c file. Inside each thread, you can call a function. Each function should have a while(1) loop inside.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-02 2:16 AM
Hello,
You can use STM32CubeMX and select RTOS.
For example for STM32 L4 you can select FreeRTOS and then you can add tasks thanks to CubeMX GUI and generate the project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-02 2:49 AM
Is there any official Youtube video to follow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-02 6:10 AM
Hello,
There is a MOOC for FreeRTOS on ST Youtube : https://www.youtube.com/playlist?list=PLnMKNibPkDnExrAsDpjjF1PsvtoAIBquX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-10 4:04 AM
Thanks for your reply. I'll check the videos!
