FAQs
I have an issue or error with the Visual Studio Code extension. What can I do?
Refer to the Troubleshooting documentation to identify the error in the extension. You might resolve the issue yourself or provide enough information for others to assist you.
Search the ESP-IDF extension repository for Visual Studio Code first, and then check the forum. Your issue might already be resolved.
What about questions regarding ESP-IDF?
Consult ESP-FAQ or ESP-IDF forum.
I try to build my project, but there is an error, and I don’t know what is happening. What should I do?
Ensure you have configured the IDE plugin/extension properly. Review the documentation to Install ESP-IDF and Tools.
The error might be in the setup or your project code. Refer to the Troubleshooting documentation and check for errors in these files.
Your issue might have been posted before in the ESP-IDF GitHub repository or ESP-IDF forum. If not, you can open a new GitHub issue or start a topic in the forum.
How does an ESP-IDF project look?
Review the Example Project to understand how to use each file.
- myProject/
- CMakeLists.txt
- sdkconfig
- components/ - component1/ - CMakeLists.txt
- Kconfig
- src1.c
- component2/ - CMakeLists.txt
- Kconfig
- src1.c
- include/ - component2.h
- main/ - CMakeLists.txt
- src1.c
- src2.c
I tried flashing my project but encountered an error similar to “Error: unable to open ftdi device with vid.” What should I do?
Check the Configure JTAG Interface to ensure your drivers are correctly defined.
On Windows, try using idf-env by running the following command in a PowerShell terminal:
Invoke-WebRequest 'https://dl.espressif.com/dl/idf-env/idf-env.exe' -OutFile .\idf-env.exe; .\idf-env.exe driver install --espressif --ftdi --silabs
Drivers are also included in the IDF-Installer.
What is another way to maintain the ESP-IDF environment?
Using idf-env, you can manage several ESP-IDF versions and launchers, install drivers, manage antivirus exclusions, and more.
While trying to debug my project, I encountered an issue. What should I do?
First, review the ESP-IDF JTAG Debugging documentation to understand how debugging works and the expected configuration of your device. The debugger connects to OpenOCD, so check the OpenOCD Troubleshooting FAQ for any OpenOCD errors you might have encountered.
If the issue is not related to OpenOCD, check your IDE integration log files and post an issue in the respective GitHub repository. Refer to the Troubleshooting documentation to identify the error in the extension.
I have an issue flashing my Espressif device. What should I do?
Start by following Espressif’s Esptool Troubleshooting documentation.