Since there isn't any solid tutorial/example repo on how to get started with ESP32 and Embassy, let this repo serve you as a guiding light ๐ฆ
-
Connect your ESP32 with your computer.
-
Install
usbipd
on Windowswinget install usbipd
-
Get the Bus ID of ESP32
usbipd list # Connected: # BUSID VID:PID DEVICE STATE # 2-1 303a:1001 USB Serial Device (COM3), USB JTAG/serial debug unit Attached # 6-1 0489:e0d8 RZ616 Bluetooth(R) Adapter Not shared # 6-2 048d:c103 USB Input Device Not shared # 6-3 048d:c985 USB Input Device Not shared
Here, the device with Bus ID
2-1
is our device. Your Bus ID may vary. -
Share the device
Execute this in Powershell with admin privileges:
usbipd bind --busid=<BUSID>
Replace
<BUSID>
with the BUSID you found earlier. -
Attach device to WSL
usbipd attach --wsl --busid=<BUSID>
Replace
<BUSID>
with the BUSID you found earlier. -
Add yourself to the
dialout
user group:sudo usermod -a -G dialout $USER
-
Run the program:
cargo r -r
Refer to usbipd-win
's repo for more information.