Page 1 of 1

freertos

Posted: Thu Jul 16, 2020 4:01 pm
by gmereness
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.

Re: freertos

Posted: Tue Jan 05, 2021 9:42 am
by slompf
I'm having the exact same problem. Any progress on this?

Regards

Re: freertos

Posted: Tue Jan 05, 2021 10:02 am
by slompf
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.

Re: freertos

Posted: Tue Jan 05, 2021 10:33 am
by boarchuz
What's your c_cpp_properties.json look like?

Re: freertos

Posted: Wed Jan 06, 2021 2:18 pm
by slompf
It looks like this:

  1. {
  2.     "configurations": [
  3.         {
  4.             "name": "ESP",
  5.             "cStandard": "c11",
  6.             "cppStandard": "c++17",
  7.             "includePath": [
  8.                 "${workspaceFolder}/**",
  9.                 "${config:idf.espIdfPath}/components/**"
  10.             ],
  11.             "browse": {
  12.                 "path": [
  13.                     "${config:idf.espIdfPath}/components",
  14.                     "${config:idf.espIdfPathWin}/components",
  15.                     "${workspaceFolder}"
  16.                 ],
  17.                 "limitSymbolsToIncludedHeaders": false
  18.             }
  19.         }
  20.     ],
  21.     "version": 4
  22. }

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.

Re: freertos

Posted: Wed Jan 06, 2021 3:12 pm
by boarchuz
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.

Re: freertos

Posted: Wed Jan 06, 2021 4:35 pm
by slompf
That helped. Thank you very much. :D