Follow this guide with the following modifications:
- You'll need to manually share the Windows USB ports with WSL using
usbipd-win
. - The guide tells how to list the USB devices with
lsusb
, but it doesn't show how to get the name of the device file that you'll need when settingRAVEDUDE_PORT
. To get that, usedmesg | grep tty
:ck@ck-win-pro:~/tuts/rust-x-arduino (main) $ dmesg | grep tty [ 1974.578111] cdc_acm 1-1:1.0: ttyACM0: USB ACM device ck@ck-win-pro:~/tuts/rust-x-arduino (main) $ export RAVEDUDE_PORT=/dev/ttyACM0 ck@ck-win-pro:~/tuts/rust-x-arduino (main) $ cargo run
- The guide gives the following command:
However, the command should be run without thecargo generate --git <https://github.com/Rahix/avr-hal-template.git>
<
or>
symbols:cargo generate --git https://github.com/Rahix/avr-hal-template.git