Problem using freeRtos with Esp32 Wroom module

Hi,
Please help out with this error.

In file included from C:\Users\Abhishek\OneDrive\Documents\Arduino\launch_file\launch_file.ino:10:
c:\Users\Abhishek\OneDrive\Documents\Arduino\libraries\FreeRTOS\src/Arduino_FreeRTOS.h:98:14: fatal error: newlib-freertos.h: No such file or directory
#include "newlib-freertos.h"

I am using Esp32 Wroom Module and writing in Arduino C.
Board I am using is ESP-32-Wroom-DA-Module.

My line10 in code, reads as follows:

#include <Arduino_FreeRTOS.h>

Please help me solve this.

Regards,
Abhishek.

I moved your topic to a more appropriate forum category @abhi2566.

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

1 Like

Why did you write that line? isn't the Arduino_FreeRTOS library and implementation of FreeRTOS Real Time Operating System for AVR?

if you are running on an ESP32 you should not need that

Yes you are right. Can u suggest some alternative, or if you can guide me on how to go forward, as my entire code is written using this library, which i had compiled for nano before hand.

Thanks

I've never used that library

You have access to the FreeRTOS API directly with your ESP.
So if the library's functions match the original spec, it could be just a matter of getting rid of

#include <Arduino_FreeRTOS.h>

and compiling...

can you post your code?

Its quite a big one, and i am under a NDA. So i can only share specific parts.

Just follow @J-M-L's post and remove the line

#include <Arduino_FreeRTOS.h>

The required functions are already available if you installed the ESP32 hardware in the Arduino IDE.

See also here
https://www.circuitstate.com/tutorials/how-to-write-parallel-multitasking-applications-for-esp32-using-freertos-arduino/#FreeRTOS

for a comprehensive introduction.

Quote:

Fortunately, we can write true parallel applications for ESP32 within the Arduino environment, thanks to the excellent support from Espressif engineers. You don’t need to install anything to accomplish this. It is already present in the environment and you have knowingly or unknowingly used it if you have ever used ESP32.

P.S.: If erverything worked well you might find the files in a place like this

C:\Users\ec2021\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.13\tools\sdk\esp32\include\freertos\include\freertos\FreeRTOS.h

The FreeRTOS implementation on ESP32 is somewhat modified from "Vanilla" FreeRTOS. The majority of those modifications are to accommodate the the ESP32's dual-core architecture and are described here. To the extent your existing code is not compatible with the ESP32's version of the APIs, you'll need to change it.

Yes this worked. i have removed the line. Now I have to modify and take care of the modules where i had used the avr freeRtos.Thanks

You're welcome, but the thanks go to @J-M-L ... :wink:

1 Like

it's OK, I'm happy if OP gets happy :slight_smile:

1 Like

Thanks to you as well!!

1 Like

Cui honorem, honorem!

probably in good latin "cui honorem honore" :slight_smile:

I would not argue about good Latin with Paulus (from whom I borrowed it)... :wink:

Besides c++ and a few other programming languages, I like other languages :slight_smile:

you can use the full citation

"Reddite omnibus debita: cui tributum tributum, cui vectigal vectigal, cui timorem timorem, cui honorem honorem." ( Romans 13:7 ?) or the shorter version "Cui honorem honore."

In the full citation "honorem" is a noun in the accusative case (it is used to indicate the direct object of the verb “reddite,” which means “give” / “render”) and in the short phrase "honore" would be a verb in the ablative or dative case.

Of course you could use the short version as a reference to the full sentence but it reads funny :slight_smile:

1 Like
Definitely Off Topic ...

You are right about the shortened phrase. It's grammatically not correct/complete but very often used as a short citation.

Latin is a great language to learn and understand the basics of grammar and the roots of many words in European languages like French, Spanish, Italian but also German and English...

Anyway, thanks for this nice off topic discussion!

« off topic»

Indeed (I’m French - studied Latin for 8 years back in the days)

1 Like

3 posts were split to a new topic: FreeRTOS code causes crash on ESP32-S3 board

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.