0

I recently was playing around with Arduino and using dfu-programmer reflashed ATMega16u2 to make the computer think it was a keyboard device.

Well, I wish to put the original Arduino firmware back on, but now dfu-programmer says the device is not present.

The Arduino is listed under /dev/hidraw5 on Ubuntu. Typing lsusb gives the following output for Arduino keyboard:

Bus 004 Device 008: ID 03eb:2042 Atmel Corp. LUFA Keyboard Demo Application

I tried erasing with the command:

sudo dfu-programmer atmega16u2:4,8 erase

and got

dfu-programmer: no device present.

Is there a way to target /dev/hidraw5 using dfu-programmer? Many thanks.

dda
1,5951 gold badge12 silver badges17 bronze badges
asked Jul 2, 2017 at 21:08

1 Answer 1

1

Very sorry! But I actually figured this out on my own. I needed to reset by briefly bridging the reset pin with ground near the USB connector. Then typed

sudo dfu-programmer atmega16u2 erase

and I'm happy again.

answered Jul 2, 2017 at 21:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.