Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is the difference of three freertos? #104

Closed
youxiaojie opened this issue Apr 7, 2021 · 5 comments
Closed

what is the difference of three freertos? #104

youxiaojie opened this issue Apr 7, 2021 · 5 comments

Comments

@youxiaojie
Copy link

https://github.com/feilipu/Arduino_FreeRTOS_Library
https://github.com/feilipu/miniAVRfreeRTOS
https://github.com/feilipu/avrfreertos
and the original rtos kernel avr ports https://www.freertos.org/a00098.html ?

@feilipu
Copy link
Owner

feilipu commented Apr 7, 2021

AVRfreeRTOS contains all the options and library code I use with my Uno, Mega2650, and Goldilocks 1284p platforms. There are many options for different memory management and even Xtended RAM support on Mega. It is all the code I've built up over some years.

MINIfreeRTOS is cut down to the bare minimum, mainly to see which files are needed. It could be used as a base, but is more of a reference than something working.

ArduinofreeRTOS is tuned to work with all ATmega devices (that I can support with avr-libc). But it loses control over many things to fit into Arduino IDE environment. Most critically, the preferred Timer can't be used, as the WDT is all that is available to be system tick. But it works quite well and can be a good start to learn about FreeRTOS.

I initially built ArduinofreeRTOS to enable me to use Arduino libraries and drivers, but not lose my preferred FreeRTOS capabilities.

@youxiaojie
Copy link
Author

take 328p/uno as example,it.can use avrfreertos and arduinofreertos. in arduino ide in arduino libs select arduinofreertos, inavrgcc with avrlib using avrfreertos? right?

and because of arduino libs , the prefered timer can't be used?

@feilipu
Copy link
Owner

feilipu commented Apr 7, 2021

AVRfreeRTOS cannot be used with Arduino IDE. I use Eclipse IDE, and hence there are no make files etc.

Arduino configures all timers in its standard libraries. If you steal one for FreeRTOS system tick something in the libraries will break, or the compile will fail.

@youxiaojie
Copy link
Author

@feilipu
Copy link
Owner

feilipu commented Apr 7, 2021

@feilipu feilipu closed this as completed Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants