Closed lgLindstrom closed 1 month ago
Flashing from a container is not something espflash is intended to do, it can be achieved in some OSs, but sometimes it results in permission issues. From the esp-template
:
Dev Containers also allow flashing from the container using web flash and have the VS Code Wokwi extension already installed.
Thanks,, I am searching instructions how to use "web flash". Can you help?
Thanks,, I am searching instructions how to use "web flash". Can you help?
Hi I am running windows 11 and docker desktop. My ESP development board is DevkitC from Espressif.
Following instructions in "rust on esp" to created a rust project by using the command:
$ cargo generate esp-rs/esp-template
I used the option to create a dev container. The newly created project directory I opened VsCode and started the dev container.
After a while everyting was set up and the devcontainer was running.
In a vscode terminalar I could issue the command :
$ cargo build
First build took a while but it worked.
Then I tried:
$ cargo run
It returned the error:
Error: espflash::no_serial
Googling on the problem found a solution with usbipd from a windows terminal.
$ usbipd attach --wsl --busid=1-2
Also I added this to my devcontainer.json file:
I restarted the Dev-Container and tried to verify the serial connection by issue this command.
It shows that my development board is connected to ttyUSB0.
But ,, running:
still shows that I cant connect to my development board.
I can see that I am not the only one that have problems with espflash but is there a work around? I am kind of stuck at the moment.