launch.json

Visual Studio Code uses .vscode/launch.json to configure debug Specifications in: Visual Studio Code Debugging. Default launch.json contents

Read More

Compiler

Config UI Command Pallet (CTRL + SHIFT + P) > Edit Configurations UI This will give you a UI view, instead of editing the c_cpp_properties.json file directly Compiler config files .vscode/c_cpp_properties.json https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference Include Paths .vscode/c_cpp_properties.json > “includePath” /** on the end of a path makes it recursive, meaning that all sub directories will also be […]

Read More

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 File > Preferences > Keyboard shortcuts Transform to Uppercase ctrl + shift + u Transform to Lowercase ctrl + shift + l Use tabs not spaces Settings > Text editor > Insert spaces = OFF Settings > Text editor > Detect Indentation = OFF Turn off auto closing Settings > Text Editor […]

Read More