Skip to content
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

Ravedude not working on Windows (10) #176

Closed
Septias opened this issue Apr 12, 2021 · 12 comments
Closed

Ravedude not working on Windows (10) #176

Septias opened this issue Apr 12, 2021 · 12 comments
Labels
bug Something isn't working ravedude windows Related to usage on Windows host systems.

Comments

@Septias
Copy link

Septias commented Apr 12, 2021

Running ravedude like this on Windows 10

[target.'cfg(target_arch = "avr")']
runner = "ravedude uno --open-console --baudrate 57600"

produces this error:

Programming target\avr-atmega328p\debug\arduino.elf => COM4
avrdude: invalid file format 'e' in update specifier
avrdude: error parsing update operation 'flash:w:target\avr-atmega328p\debug\arduino.elf:e'
Error: avrdude failed
error: process didn't exit successfully: `ravedude uno --open-console --baudrate 57600 target\avr-atmega328p\debug\arduino.elf` (exit code: 1)

It complains about :e specifier being wrong and that's exactly what I observed when I tried to flash manually on windows.

@Rahix Rahix added the ravedude label Apr 12, 2021
@Rahix
Copy link
Owner

Rahix commented Apr 12, 2021

Thanks! Can you quickly check which version of avrdude you have installed?

@Septias
Copy link
Author

Septias commented Apr 12, 2021

$ ravedude -V
ravedude v0.1.2 (no git)

@Rahix
Copy link
Owner

Rahix commented Apr 12, 2021

right, but I was looking for the avrdude version, not ravedude ;) Try

$ avrdude -?

the version will be shown at the very end of the help output.

@Septias
Copy link
Author

Septias commented Apr 12, 2021

Oof still version 5.10... with 6.3 it works...

@Septias
Copy link
Author

Septias commented Apr 12, 2021

I'm still experiencing "performance issues" with the serial console though...
It should normally output a message with ufmt every 250ms. On my Linux WSL with a screen it runs really smooth, but the console created by ravedude always outputs the messages in batches of like 3-5 messages instead of one-by-one.
When I open the connection manually:

function read-com {
    $port= new-Object System.IO.Ports.SerialPort COM3,57600,None,8,one
    $port.Open()
    do {
        $line = $port.ReadLine()
        Write-Host $line # Do stuff here
    }
    while ($port.IsOpen)
}

I get a steady flow.

@stappersg
Copy link
Contributor

stappersg commented Apr 12, 2021 via email

@Rahix Rahix reopened this Apr 13, 2021
@Rahix
Copy link
Owner

Rahix commented Apr 13, 2021

Please in a fresh issue ...

No need to.


Oof still version 5.10... with 6.3 it works...

I see. The question is, if lot's of people still use 5.10 we should support it as well. Where did you get this older version?


I'm still experiencing "performance issues" with the serial console though...

Hm, this looks like a buffering issue. But we're actually flushing stdout whenever a new message arrives:

stdout.write(&buf[..count]).unwrap();
stdout.flush().unwrap();

Maybe you can play around with that code a bit to check what is going on? I don't have a windows on hand so I cannot test this...

You can test just the serial console (without flashing a binary) by calling:

$ ravedude uno -cb 57600

(without a path to a binary).

@Rahix Rahix added the bug Something isn't working label Apr 13, 2021
@Rahix
Copy link
Owner

Rahix commented Apr 13, 2021

(or test directly from the ravedude/ directory with cargo run -- -cb 57600)

@Rahix
Copy link
Owner

Rahix commented Apr 13, 2021

Maybe try removing this line and see if it changes anything:

.timeout(std::time::Duration::from_secs(2))

@michelepagot
Copy link

Oof still version 5.10... with 6.3 it works...

hi all, I'm in the same situation and I fall in the same mistake. Is it possible to cite in the documentation that at least avrdude => 6.3 has to be used or something like "tested with avrdude 6.3" ?

@stappersg
Copy link
Contributor

stappersg commented Sep 7, 2021 via email

@Rahix
Copy link
Owner

Rahix commented May 4, 2024

I think over time all the problems from this issue got resolved. So I will close it for now, even though I don't know for sure what the status is. If anyone is still experiencing issues, we can reopen the topic again.

@Rahix Rahix closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ravedude windows Related to usage on Windows host systems.
Projects
None yet
Development

No branches or pull requests

4 participants