sdkconfig.h

sdkconfig.h is automatically generated from the projects config settings in the /build/config/ directory. You can use make menuconfig build target to edit components’ configuration. This configuration is saved inside sdkconfig file in the project root directory. Based on sdkconfig, application build targets will generate sdkconfig.h file in the build directory, and will make sdkconfig options […]

Read More

Software Examples

ESP32 Peripherals There are example projects for loads of the ESP32 peripherals – see “Create an example project in Visual Studio”. Espressif Examples https://github.com/espressif/esp-idf/tree/master/examples

Read More

OpenOCD Issues

OpenOCD – libusb_open() failed with LIBUSB_ERROR_NOT_FOUND Have you installed the driver for the ESP-Prog? Have you used the zadig tool to change the driver for Interface 0 / is it still changed (hasn’t reverted back). Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED From Espressif support: This confusing error message can be printed on Windows, but it does […]

Read More

.2 Making VS Code work the way we like

VS Code Options Our general settings for VS Code – see here ESP32 C programming specific settings Clear terminal when building (so it start fresh each time) Settings > Features > Debug > Terminal: Clear Before Reusing = ONSettings > Features > Debug > Cmake: Clear Output Before Build = ON Open files at the […]

Read More

OpenOCD Log output

Add this to your openocd commands Using -d3 gives you a full verbose output The output log is written to the file openocd_log.txt in: C:\Espressif\frameworks\esp-idf-vX.X.X

Read More

.4 Debugging with VS Code

ESP-Prog programmer / debugger For details on installing see here. Installing debugger VS Code has a built-in debugger, its setup documentation is here. Apparently some people use it successfully for Espressif chips (launch.json “type”: “gdb”). Espressif have a dedicated VS Code extension for debugging which is likely the better choice (launch.json “type”: “espidf”) and that’s […]

Read More

Help and Community

ESP32 Forum – Seems really hard getting any actually support on this for anything tricky, we get nothing unless we email Espressif a link to our post that has sat there unanswered for days and ask if someone can respond to it. GitHub – We’ve found that raising issues with esp-idf on GitHub gets a […]

Read More

UART Pins

UART0 The ESP32 can be programmed via its UART pins. However it doesn’t have to be if you want to use them for something else. It is also possible to program it using the JTAG interface pins. Pin assignment (other than UART0) UART signals can be connected via IOMUX for specific GPIO or otherwise the […]

Read More