Execute a nop
All posts by
.Nop general
Execute a single null instruction
launch.json
Visual Studio Code uses .vscode/launch.json to configure debug Specifications in: Visual Studio Code Debugging. Default launch.json contents
.Using the UART
Transmit Receive – Polling for data Receive – Using an xTask
OpenOCD General
Debugging JTAG Debugging Exit OpenOCD running on command prompt CTRL + C
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 […]
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 […]
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
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 […]
Heartbeat timer example (non IRQ)
In your app’s main loop() The Heartbeat Function