git clone https://github.com/esp-rs/rust-build.git
cd rust-build
./install-rust-toolchain.sh --extra-crates "ldproxy cargo-espflash wokwi-server web-flash" \
--export-file /home/<user>/export-esp.sh \
--esp-idf-version "release/v4.4" \
--minified-esp-idf "YES" \
--build-target "esp32" \
source /home/<user>/export-esp-rust.sh
cargo install cargo-generate
cargo generate --git https://github.com/esp-rs/esp-idf-template cargo
cd <project-name>
cargo espflash ESP32 save-image main.bin
webusb_push.py --run rust main.bin
println!
output appears on the first serial port exposed by the MCH022 badgeThis repository offers ready-to-use devlopment environments via Dev Containers for:
Note
In order to use GitHub Codespaces the project needs to be published in a GitHub repository and the user needs to be part of the Codespaces beta or have the project under an organization.
If using VS Code or GitHub Codespaces, you can pull the image instead of building it from the Dockerfile by selecting the image
property instead of build
in .devcontainer/devcontainer.json
. Further customization of the Dev Container can be achived, see .devcontainer.json reference.
When using Dev Containers, some tooling to facilitate building, flashing and simulating in Wokwi is also added.
Terminal approach:
scripts/build.sh [debug | release]
If no argument is passed,
release
will be used as default
UI approach:
The default build task is already set to build the project, and it can be used in VS Code and Gitpod:
Ctrl-Shift-P
or Cmd-Shift-P
) run the Tasks: Run Build Task
command.Terminal
-> Run Build Task
in the menu.Ctrl-Shift-B
or Cmd-Shift-B
.Ctrl-Shift-P
or Cmd-Shift-P
) run the Tasks: Run Task
command and select Build
.Build
on the left side of the Status Bar.At the momment there is no way to flash the Badge from the containers
When using a custom Wokwi project, please change the WOKWI_PROJECT_ID
in run-wokwi.sh
. If no project id is specified, a DevKit for esp32 will be used.
Warning
ESP32-S3 is not available in Wokwi
Terminal approach:
scripts/run-wokwi.sh [debug | release]
If no argument is passed,
release
will be used as default
UI approach:
The default test task is already set to build the project, and it can be used in VS Code and Gitpod:
Ctrl-Shift-P
or Cmd-Shift-P
) run the Tasks: Run Test Task
commandCtrl-Shift-,
or Cmd-Shift-,
Note
This Shortcut is not available in Gitpod by default.
Ctrl-Shift-P
or Cmd-Shift-P
) run the Tasks: Run Task
command and select Build & Run Wokwi
.Build & Run Wokwi
on the left side of the Status Bar.Warning
The simulation will pause if the browser tab is in the background.This may affect the execution, specially when debuging.
Wokwi offers debugging with GDB.
Terminal approach:
$HOME/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb target/xtensa-esp32-espidf/debug/mch -ex "target remote localhost:9333"
UI approach:
debug
profileRun and Debug
section of the IDE (Ctrl-Shift-D or Cmd-Shift-D
)F5
esp
when using VS Code or GitHub Codespacesgitpod
when using GitpodRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4