Web extension of ESP-IDF for serial communication using esptool-js such as flash and monitor Espressif devices.
Press menu View., select Command Palette... and search for these commands:
ESP-IDF-Web Flash
: Flash binaries from selected workspace to selected serial port. If no serial port was previously selected, it will ask the user for the serial port to use othewise use previously selected serial port.
ESP-IDF-Web Monitor
: Start a serial monitor terminal connected to the selected serial port. If no serial port was previously selected, it will ask the user for the serial port to use othewise use previously selected serial port.
ESP-IDF-Web Flash and Monitor
: Flash binaries from selected workspace folder to selected serial port and start a serial monitor terminal to selected serial port. If no serial port was previously selected, it will ask the user for the serial port to use othewise use previously selected serial port.
ESP-IDF-Web Select serial port
: Show the list of available serial ports for previous commands. The selected serial port will saved and shown in the status bar icon and re used by this extension commands.
ESP-IDF-Web Disconnect serial port
: Dispose of currently selected serial port. This command is executed when you click the serial port shown in the status bar.
NOTE: The
ESP-IDF-Web Flash
command depends onflasher_args.json
and theESP-IDF-Web Monitor
command depends onproject_description.json
from ESP-IDF project build directory, where the build directory is defined usingidf.buildPath
from ESP-IDF extension VS Code configuration setting or it will use the currently selected workspace folderbuild
otherwise (${workspaceFolder}/build
).
idfWeb.flashBaudRate
: Allow the user to set the flash baudrate being used to flash the current workspace folder ESP-IDF project application to your device.
idfWeb.enableStatusBarIcons
: Show or hide the ESP-IDF Web extension status bar icons: (Selected serial port, Flash and Monitor icons). This setting can only be modified in User Settings.
For ESP-IDF-Web Monitor
command, the baud rate used is determined from build directory's project_description.json
field called monitor_baud
.
Run yarn
to install dependencies
Run yarn package
to generate the esp-idf-web-extension.vsix
installer to install in Codespaces, Visual Studio Code or other compatibles IDEs.
Run yarn run-in-browser <path-to-idf-project>
to start a Chromium browser with Visual Studio Code running the extension. (This environment does not provide a usable terminal).
You can also side load it into vscode.dev
by following this documentation.
WebSerial API doesn't identify currently selected serial port in the SerialPort information only USB ProductID and VendorID. More information in here.