You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed your guide on generating a new project with avr-hal-template and chose 'Arduino Uno' in the template menu.
When I execute cargo run, I get:
Finished dev [optimized + debuginfo] target(s) in 7.65s
Running `ravedude uno -cb 57600 -P /dev/ttyACM0 target/avr-atmega328p/debug/sensor.elf`
Board Arduino Uno
Programming target/avr-atmega328p/debug/environment-sensor.elf => /dev/ttyACM0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
The Arduino IDE gives exactly the same error.
However, after some investigation with arduino-cli, I found out I need the megaAVR core rather than the (I think) non-mega avr core that is used by ravedude:
$ ./arduino-cli board list
Port Protocol Type Board Name FQBN Core
/dev/ttyACM0 serial Serial Port (USB) Arduino Uno WiFi Rev2 arduino:megaavr:uno2018 arduino:megaavr
Using the listed FQBN with arduino-cli on the 'blink' example sketch, the sketch gets successfully uploaded and starts running on the target:
$ ./arduino-cli compile --fqbn arduino:megaavr:uno2018 blink
$ ./arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:megaavr:uno2018 blink
avrdude: usbdev_open(): WARNING: failed to set configuration 1: Device or resource busy
It seems the warning can be ignored in this case, although I can't say what other process is actually using the device while doing this.
My questions for you:
Is this a known issue and do you have pointers to solutions?
If not, can I configure ravedude to use the above FQBN?
If not, can you point me where I need to extend the ravedude code to support this? I don't seem to be able to locate the core setting in the generated config for avrdude.
The text was updated successfully, but these errors were encountered:
Hello,
I followed your guide on generating a new project with avr-hal-template and chose 'Arduino Uno' in the template menu.
When I execute
cargo run
, I get:The Arduino IDE gives exactly the same error.
However, after some investigation with arduino-cli, I found out I need the megaAVR core rather than the (I think) non-mega avr core that is used by ravedude:
Using the listed FQBN with arduino-cli on the 'blink' example sketch, the sketch gets successfully uploaded and starts running on the target:
It seems the warning can be ignored in this case, although I can't say what other process is actually using the device while doing this.
My questions for you:
The text was updated successfully, but these errors were encountered: