- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am working on an RC car project and for this project I am using a multitude of sensors (speed, GPS, Proximity). So far, I've been running through a single while(1) loop, however, I've been thinking about exploring the possibility of using FreeRTOS to manage all the sensors in the system. (I have no experience using RTOS but I would like to start somewhere)
Now, this uses radio communication over UART in order to receive the commands for the car's movement.
My question is: Would you recommend using an RTOS for something like this?
Solved! Go to Solution.
- Labels:
-
PSoC 5 Device Programming
-
PSoC 5LP
- Tags:
- free rtos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
FreeRTOS is advantageous in those aplications where:
1. There are lot of tasks running in the code.
2. There are lot of waiting states or delays implemented in the code.
3. When you want to add any new task(s) in the future.
So for your application if you feel any of the above mentioned points is required, you can go with FreeRTOS.
But, if your application has only few tasks and if they can be implemented using interrupts (for example you can implement UART in interrupt mode), both FreeRTOS and Bare-metal programming would give satisfactory results. Please refer the attached code snippet which uses PendSV exception to execute bottom-half tasks of any interrupts.
To answer your question, Since you are beginner in FreeRTOS, we recommend you to go with FreeRTOS, implement and compare the results with the current implementation.
Hope this information helps! Kindly let us know if we can help you more.
Thanks
Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
FreeRTOS is advantageous in those aplications where:
1. There are lot of tasks running in the code.
2. There are lot of waiting states or delays implemented in the code.
3. When you want to add any new task(s) in the future.
So for your application if you feel any of the above mentioned points is required, you can go with FreeRTOS.
But, if your application has only few tasks and if they can be implemented using interrupts (for example you can implement UART in interrupt mode), both FreeRTOS and Bare-metal programming would give satisfactory results. Please refer the attached code snippet which uses PendSV exception to execute bottom-half tasks of any interrupts.
To answer your question, Since you are beginner in FreeRTOS, we recommend you to go with FreeRTOS, implement and compare the results with the current implementation.
Hope this information helps! Kindly let us know if we can help you more.
Thanks
Ganesh