I would also like to add the libraries from arduino but Im not sure how to do that. I did try the arduino extension for vs code but the libraries still aren’t included in the path.
I’m new to this kind of hardware programming and quite confused with the whole setup.
Seems like it might be a $PATH file location issue, did you use the hackaday tutorial successfully? Did the reinstall break everything, or was behavior unchanged?
Are you on windows/mac/linux?
Usually I either place the files in the default $PATH location for VS Code, or create a directory specifically for any additional libraries and point VS Code to it.
Are you tied to VS Code, or are you open to other coding environments? The Arduino IDE has a lot of great tools for ESP32 dev, as well as a (rather) user-friendly library and board manager. But if you’re super into using VS Code maybe we can try to figure out getting VS Code to locate the files.
Im unfortunately not a fan of the arduino ide and would like to be able to use vs code going forward.
Im on linux/ubuntu and have updated the path variables in my ./profile according to the guide on esspressif. Since my first post l’ve also updated the c_cpp_properties.json and compile_commands.json. I tried to update the component.mk but im not sure if i understand how to do that correctly…
However some of the libraries/header files/components(thats what they’re called at esspressif?) were found(!), but not the FreeRTOS.h.
Im guessing if I wanna add libraries in should put them in the components directory?
In agreement with @Nordseele and is what I used for my last ESP32 endeavor . It’s all in VisualStudio and the library management features make the Arduino environment really manageable-kind of gets rid of the worst part Arduino IMO which is missing/changed libraries.
I fooled with the ESP-IDF from the espressif extension for VSCode and it worked for me right out of the box. I’m Windows mostly and it just worked-way simpler than the old process. Also had some luck with setting up the build environment on a pi and just using remote ssh in VSCode.