-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uno-runner for Windows Subsystom for Linux #173
Comments
The runner script is actually a thing of the past. I've been working on a proper tool for this, see https://blog.rahix.de/ravedude/ :) It currently lives in the I don't use windows so I have no clue how well it works over there. Maybe you can install |
well thanks for the really fast response and the website of ravedude is as nice as its name, but when I run
|
the latter part
can be eliminated with |
Looks like you have an older compiler version, maybe? |
Yeah, I only installed WSL for this project and since the version should be capped according to README I only had that version installed. I installed newest one and it now works - at least installing. [target.'cfg(target_arch = "avr")']
runner = "ravedude uno --open-console --baudrate 57600 -P/dev/ttyS3" still produces |
Hm, can you try using it outside WSL? Not sure but you might be lucky and it could just work... |
I don't have a Linux machine :/ Might try it on windows tho... |
Ah, I was referring to trying it on windows directly, sorry! |
Are you using WSL2 or 1? If you're using 2, I believe it can't yet communicate with the serial ports. The workaround I came up with was to install avrdude in Windows and then call that executable from WSL, because that can read the serial ports. I'm now using a programmer and Atmel studio, so I can't comment on how ravedude works, unfortunately :\ |
Okay, that sounds like a reasonable approach, can you send me your avr-command? I tried a little bit but I just can't get it right. Since we're having the same problem it should be possible to use yours, right? |
I just moved to WSL 1 and that works with ravedude. Not exactly what I wanted but works for now so I'll close it |
@Septias @Rahix I was able to get the initial script working by manually calling it (without cargo) with the elf file as parameter using the git shell on windows (without WSL)
|
@H4xX0r1337, I see. But as I said those scripts are to be removed anyway, please try |
@Rahix When installing ravedude on Windows I get the same issue as Septias ( |
@H4xX0r1337 this error is caused by using an older version of the rust compiler. Please update to 1.51.0 and try again. WSL should not be needed, the goal is to make it work without that entirely. |
Where should I post issues with ravedude? I tried it on Windows 10 19042.867 but it doesn't work:
It complains about :e specifier being wrong and that's exactly what I observed when I tried to flash manually on windows. |
Ah, I see. I guess we can build a workaround for this. Can you open a new issue in this repository (avr-hal) about it please? |
FWIW in #176 (comment) we did learn that a recent |
This is a post on how to connect serial devices to WSL: https://www.scivision.dev/usb-tty-windows-subsystem-for-linux/
On Linux, the Arduino doesn't show up as
/dev/ttyACM0
but as for example/dev/ttyS3
when it's connected to Port 3.This would perhaps conclude that changing this:
SERIAL_PORT="/dev/ttyACM0"
in uno-runner.sh toSERIAL_PORT="/dev/ttyS3"
would do the trick but that's not the case I think because I getInappropriate ioctl for device
instead.How can I make this work?
The text was updated successfully, but these errors were encountered: