-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Update FreeRTOS to 10.4.5 or newer (IDFGH-5391) #7137
Comments
Hi @DawidDiaco, Thanks for bringing this up. Agree there are some nice features in these newer FreeRTOS releases. ESP-IDF uses the FreeRTOS kernel, with modifications for SMP (dual core) support. Because of the kernel modifications, updating is more risky than just using the new kernel source - new features may need modifications to work correctly and careful testing to make sure they work in the SMP configuration and don't introduce subtle bugs or regressions. It's quite a lot of work to update. That said, we will consider updating to pick up these new features. I can't give you any ETA on this, sorry. Long term, FreeRTOS team has recently created a development branch with an official SMP kernel and we're looking to move ESP-IDF to this, but such a change will require a major version update as the behaviour is different and some APIs will break. If/when we use the official upstream SMP kernel then updating to new upstream versions will become much simpler! Angus |
Thank you for your explanation. I think I can live with the current version of FreeRTOS, but I will be patiently waiting for updates. For now you can close this ticket, or mark it as whatever is appropriate in this case. |
@DawidDiaco Current IDF master (20847ee) should already have updated FreeRTOS to v10.4.3. Closing this issue, please feel free to reopen. |
Can please reopen this issue. Currently we have to run a routine is an idle task to detect and handle wrapping of the runtime counter, an unnecessary kludge. |
@ammaree Could you specific exactly which FreeRTOS version you want? |
10.4.5 or newer
…Sent from my iPhone
On 15 Feb 2022, at 08:00, Darian ***@***.***> wrote:
@ammaree<https://github.com/ammaree> Could you specific exactly which FreeRTOS version you want?
—
Reply to this email directly, view it on GitHub<#7137 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAYT7GH5NORULHICSAVTQEDU3HTWVANCNFSM46RDH3XQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I think @ammaree want this feature: |
Absolutely correct
…Sent from my iPhone
On 15 Feb 2022, at 09:04, Axel Lin ***@***.***> wrote:
@ammaree<https://github.com/ammaree> Could you specific exactly which FreeRTOS version you want?
I think @ammaree<https://github.com/ammaree> want this feature:
https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/History.txt#L31-L34
—
Reply to this email directly, view it on GitHub<#7137 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAYT7GBTE3P34TWSQHYIKB3U3H3JFANCNFSM46RDH3XQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Any chance of on update on this functionality? |
@ammaree We're still discussing whether to upgrade to v10.4.3. Our main concern right now is that v10.4.3 is an LTS version. Given that we are going to move over to the SMP Kernel in the future, we preferably want to leave the legacy kernel on an LTS version. If this ends up being the case, then we will backport specific functionality from later versions (such as the @ammaree do you have any preference w.r.t the two approaches mentioned above? |
Our only requirement is for the 64bit runtime counters so you welcome to choose the option that would be the least effort and quickest. Other users might requirement additional 10.4.5 functionality but cannot speak for them. |
According to the FAQ https://www.freertos.org/faq-lts.html#question2 , the support period for FreeRTOS LTS libraries is two years. |
FYI, V10.5.0 released. |
AFAICT, the espressif's response is too slow. |
Not yet, it is in progress at the moment: esp-idf/components/freertos/Kconfig Lines 6 to 11 in 903af13
esp-idf/components/freertos/CMakeLists.txt Lines 34 to 35 in 903af13
|
Thanks @igrr Any estimated timeframe for having a "testable" version in master? |
I'm wondering if FreeRTOS-10.5.1 fixes this issue: #8849 |
Thanks for the feedback but an estimate of Q3 for the RISC-V is of no value to us.
The requirement is for the ESP32[S2/S3] not for RISC-V.
Leaving customer still supporting the original ESP32 out for this long on 10.4.3 is very painful and sad.
On 23/07/14, 05:25, "Zim Kalinowski" ***@***.******@***.***>> wrote:
@AxelLin<https://github.com/AxelLin> I will check
@ammaree<https://github.com/ammaree> we are actively working on this at the moment, at the end of Q3 we should have version for RISC-V chips
—
Reply to this email directly, view it on GitHub<#7137 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAYT7GGLO4MSWLMQB37APK3XQC32BANCNFSM46RDH3XQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
So how is the status? Any update? |
This issue is almost 20 months old, from the date of it being reopened at my request. We are STILL, 20 months later, on an LTS version of FreeRTOS that is EOL. We accept the argument of the older version being retained with the IDF 4.4.x releases/updates, but to still be using the EOL RTOS with IDF v5.2, that is a serious problem. Also not sure why the "focus" on upgrading the RTOS for C3 series, surely ESP32/S2/S3 should receive same if not higher priority? |
@Dazza0 |
|
This commit adds beta support for the FreeRTOS v10.5.1 kernel which can be enabled by enabling the CONFIG_FREERTOS_USE_KERNEL_10_5_1 option. The following changes have been made: - Updated freertos/CMakeLists.txt to build v10.5.1 kernel with v10.4.3. ports - Updated existing Xtensa and RISC-V ports to work with V10.5.1 - Modifications to other ESP-IDF components to work with v10.5.1 - Added some ESP-IDF specific tracing changes to v10.5.1 kernel - Make CONFIG_FREERTOS_USE_KERNEL_10_5_1 a public option Note: The beta release is missing some minor fixes, performance improvements, and features. Using this beta release for production is not recommended. Closes espressif#7137
FYI, FreeRTOS-v11.0.0 released. (SMP merged into the mainline) |
FYI, FreeRTOS-v11.2.0 released. |
Is your feature request related to a problem? Please describe.
Hello, I would like to request an update for FreeRTOS. The current release/4.3 apears to be working on version 10.2.1, which is quite outdated at this point. In the current version of FreeRTOS they have some interesting features that I would like to use in my project.
The one that I'm really looking forward to use is ulTaskNotifyTakeIndexed function, because they claim, that this function is 45% faster than standard ISR handling by using semaphore.
https://www.freertos.org/RTOS_Task_Notification_As_Counting_Semaphore.html
Describe the solution you'd like
I would like to have an updated version of FreeRTOS in the closest release. I'm not sure at this moment if ESP-IDF is using just the kernel of FreeRTOS, or the whole FreeRTOS subsystem, but when I look a those releases, they look juicy as hell!
https://github.com/FreeRTOS/FreeRTOS/releases
https://github.com/FreeRTOS/FreeRTOS-Kernel/releases
So updating FreeRTOS to version 10.4.4, or 202104.00 seems to have the most sense for now.
Describe alternatives you've considered
For now I'm sticking with ulTaskNotifyTake, which is fine, but if I can provide a better way to utilize my ESP, then I want to do this.
I've also considered to update freertos by my self, but my lack of experience with embeded systems may result in more problems than benefits. That's why I would like that this component got updated by experienced team. Especialy it looks like the freertos required some porting for it to work with esp.
The text was updated successfully, but these errors were encountered: