How to use ESP32 WROOM32E without FreeRTOS

Ashvajit.P
Posts: 34
Joined: Fri Feb 26, 2021 9:03 am

How to use ESP32 WROOM32E without FreeRTOS

Postby Ashvajit.P » Mon Jun 07, 2021 9:26 am

Hello,
I am trying to build an application on ESP32 WROOM32E with basic peripherals including Keys, LCD,ADC, UART and Wi-Fi. Is it possible to run my code without FreeRTOS ?
I also tried disabling the Initialize Task Watchdog Timer on startup option. But watchdog timer keeps resetting(I have attached image for reference).
Is it possible to run my code as in Bare Metal ?
Attachments
watchdd_rst_1.PNG
watchdd_rst_1.PNG (146.94 KiB) Viewed 6795 times

ESP_Sprite
Posts: 9747
Joined: Thu Nov 26, 2015 4:08 am

Re: How to use ESP32 WROOM32E without FreeRTOS

Postby ESP_Sprite » Mon Jun 07, 2021 2:37 pm

Is there a reason why you want to do it? For various reasons, not having any FreeRTOS interaction on one core is harder than you might think; there may be other ways of solving your issue.

Ashvajit.P
Posts: 34
Joined: Fri Feb 26, 2021 9:03 am

Re: How to use ESP32 WROOM32E without FreeRTOS

Postby Ashvajit.P » Tue Jun 08, 2021 8:49 am

The reason to avoid FreeRTOS is due to product security perspective. Our product security team doesn't recommend use of Open source libraries. If any vulnerabilities found while scanning the code in Static analysis tool, then we might not be able to resolve those vulnerabilities issues if found in FreeRTOS libraries.

ESP_Sprite
Posts: 9747
Joined: Thu Nov 26, 2015 4:08 am

Re: How to use ESP32 WROOM32E without FreeRTOS

Postby ESP_Sprite » Wed Jun 09, 2021 1:03 am

Ah, I misread your request; I thought you said you only wanted to run FreeRTOS on one core. Not running it at all is not well-supported to begin with (you would have to cobble something together from the ESP-IDF startup code and the LL driver layers) and impossible if you want to use WiFi: although you could potentially modify it for another RTOS, the WiFi drivers expect some kind of RTOS as the underlying infrastructure.

(Besides that, your product security teams stance is odd. If FreeRTOS was closed source, you wouldn't be able to fix any issues with it as it's closed. Because FreeRTOS is open and you can look at the code, it's possible to fix any issues in there.)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: How to use ESP32 WROOM32E without FreeRTOS

Postby ESP_Angus » Thu Jun 10, 2021 3:50 am

Hi Adhvajit,
Ashvajit.P wrote:
Tue Jun 08, 2021 8:49 am
The reason to avoid FreeRTOS is due to product security perspective. Our product security team doesn't recommend use of Open source libraries. If any vulnerabilities found while scanning the code in Static analysis tool, then we might not be able to resolve those vulnerabilities issues if found in FreeRTOS libraries.
I don't know if this is helpful, but to add to Sprite's point: the FreeRTOS functionality that's included in ESP-IDF is supported as a whole by Espressif - the same as the support for supplied drivers for LCD, ADC, UART, Wi-Fi, etc. So you may be able to explain to your security team that this is a vendor-supplied library, rather than a third-party open source library included from elsewhere on the internet. All of ESP-IDF falls under the same support policy, which can be found here, that includes responding to any security issues.

Who is online

Users browsing this forum: No registered users and 82 guests