Menu

A browser serial console for ESP-IDF
📰

A browser serial console for ESP-IDF

Adafruit Industries – Makers, hackers, artists, designers and engineers!·Anne Barela·5 days ago
#e4oJsSBY
#adafruit#monitor#ctrl#github#serial
Reading 0:00
15s threshold

Espressif Systems has released esp-idf-monitor-js, a serial console for ESP-IDF that runs in a browser. The page gets a Web Serial or WebUSB port, and the monitor speaks the same keyboard commands as the Python esp-idf-monitor. Ctrl+] exits, Ctrl+T opens the menu for reset, bootloader, flash, output, timestamps and log capture, and Ctrl+C is passed to the chip instead of quitting. There are also command-stream calls: reset(), bootloader(), send(text), expect(pattern, timeoutSeconds) and sleep(seconds).

Address decoration reads the ELF symbol table and the DWARF line table from the application ELF, so a program counter prints as a function, source file and line. ROM addresses are labeled ROM. Requests for gdbstub, core dumps and flashing are reported as events rather than over a WebSocket. Flashing is done by closing the monitor and using esptool-js on the same port.

A TypeScript example page loads an ELF and starts a monitor, and GitHub Actions publishes it to GitHub Pages .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.