freertos

gmereness
Posts: 3
Joined: Thu Jul 16, 2020 3:51 pm

freertos

Postby gmereness » Thu Jul 16, 2020 4:01 pm

Cannot find a file included in the freertos library - reent.h.
I get a compiler warning and sometimes cannot build/flash the ESP32 part.
Using VSCode to build a project on Ubuntu 18.0.4.
Very annoying - could anyone help out.
Attachments
Screenshot from 2020-07-16 09-50-38.png
Screenshot from 2020-07-16 09-50-38.png (35.04 KiB) Viewed 9198 times

slompf
Posts: 15
Joined: Tue Mar 12, 2019 6:55 pm

Re: freertos

Postby slompf » Tue Jan 05, 2021 9:42 am

I'm having the exact same problem. Any progress on this?

Regards

slompf
Posts: 15
Joined: Tue Mar 12, 2019 6:55 pm

Re: freertos

Postby slompf » Tue Jan 05, 2021 10:02 am

Just found a suggested solution in this forum: viewtopic.php?f=40&t=17818&p=66817&hilit=reent#p66817

But it does not work for me.

boarchuz
Posts: 657
Joined: Tue Aug 21, 2018 5:28 am

Re: freertos

Postby boarchuz » Tue Jan 05, 2021 10:33 am

What's your c_cpp_properties.json look like?

slompf
Posts: 15
Joined: Tue Mar 12, 2019 6:55 pm

Re: freertos

Postby slompf » Wed Jan 06, 2021 2:18 pm

It looks like this:

Code: Untitled.js Select all


{
"configurations": [
{
"name": "ESP",
"cStandard": "c11",
"cppStandard": "c++17",
"includePath": [
"${workspaceFolder}/**",
"${config:idf.espIdfPath}/components/**"
],
"browse": {
"path": [
"${config:idf.espIdfPath}/components",
"${config:idf.espIdfPathWin}/components",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": false
}
}
],
"version": 4
}

But the sys/reent.h cannot be found in any of the (sub)directories. In fact I did not find it on my system. I'm using esp-idf 4.2. I guess the include was added to FreeRTOS.h in a recent release.

boarchuz
Posts: 657
Joined: Tue Aug 21, 2018 5:28 am

Re: freertos

Postby boarchuz » Wed Jan 06, 2021 3:12 pm

Try add the following (at same depth as "name"):

Code: Select all

"compilerPath": "${config:idf.toolsPath}/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
Check compilerPath is correct, you may have a different version.

slompf
Posts: 15
Joined: Tue Mar 12, 2019 6:55 pm

Re: freertos

Postby slompf » Wed Jan 06, 2021 4:35 pm

That helped. Thank you very much. :D

Who is online

Users browsing this forum: No registered users and 1 guest