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 Console Timeout #578

Open
hcabel opened this issue Sep 8, 2024 · 1 comment
Open

Ravedude Console Timeout #578

hcabel opened this issue Sep 8, 2024 · 1 comment

Comments

@hcabel
Copy link

hcabel commented Sep 8, 2024

Hey newbie here, I'm trying to use the console but it timeout 2s after it launched, with "The device does not recognize the command. (os error 22)"

Context:

I'm using Window 11
with a promicro Atmega32u4 USB-C
I use this value: runner = "ravedude -cb 57600 promicro -P COM8"

I've tweak the code a little bit to get rid of the timeout and I've added a print, (that's how I got the error message) but none of that helped. 😞

My guess

My only guess (pure theory) maybe it's because my controller is getting disconnected.
When I press the reset switch that's when my COM8 port is showing up. But then when the new firmware is installed it goes away (code 45, hardware not connected).
My Controller is still connected though, but maybe it use another port or something.

I'll really appreciate any help 😸 🙏

@Rahix
Copy link
Owner

Rahix commented Sep 14, 2024

Hi,

you've run into a problem that isn't quite obvious: The ATmega32U4-based (e.g. Leonardo, Promicro) boards work differently from the ATmega328P-based ones (e.g. Uno, Mega). The ATmega32U4 handles USB directly instead of using a simple UART for serial communication which then gets translated to USB by an external component. This means that you have to do USB communication on the ATmega32U4-based boards to get a serial console. On other boards this is much easier because UART is much simpler than USB.

Unfortunately, USB is not yet fully supported here in avr-hal. See issue #40...

As an alternative, you can connect an external USB-to-UART bridge to the UART pins (RX,TX) of your board and use that one for serial communication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants