geekhack

geekhack Projects => Making Stuff Together! => Topic started by: Khuya on Sun, 19 June 2016, 05:38:09

Title: atmega32u4 no device present
Post by: Khuya on Sun, 19 June 2016, 05:38:09
I have been trying to flash the firmware on atmega32u4 with no success.

I ran

$ make -f makefile dfu
dfu-programmer atmega32u4 erase --force
dfu-programmer: no device present.
make: *** [../../tmk_core/rules.mk:424: dfu] Error 3

It keep saying no device present.  I did enter DFU mode.  Any idea what else am I missing?
Title: Re: atmega32u4 no device present
Post by: suicidal_orange on Sun, 19 June 2016, 06:35:27
What bootloader does your atmega have on it?
Title: Re: atmega32u4 no device present
Post by: Khuya on Sun, 19 June 2016, 06:42:52
how do I find this?  I am not sure what you mean.. I bought this from this link
http://www.aliexpress.com/item/Mini-Leonardo-Pro-Micro-ATmega32U4-5V-16MHz-Module-For-Arduino-Best-Quality/32284746884.html
Title: Re: atmega32u4 no device present
Post by: Hypersphere on Sun, 19 June 2016, 07:15:00
Which OS are you using? Have you installed dfu-programmer? Have you verified a working connection to the atmega32u4?
Title: Re: atmega32u4 no device present
Post by: TalkingTree on Sun, 19 June 2016, 08:31:48
It keep saying no device present.  I did enter DFU mode.  Any idea what else am I missing?

What bootloader does your atmega have on it?
Caterina Bootloader, a true nightmare. Every guide I found on the internet didn't help.
I ultimately broke something and it's not recognized anymore in the device manager.

I wish you better luck.


Title: Re: atmega32u4 no device present
Post by: MOZ on Sun, 19 June 2016, 12:08:34
The issue with that bootloader is that it stays in DFU mode for a very short time IIRC. You can have it stay there for 8 secs, just ground the rest pin twice quickly. A switch helps for this. Also, IIRC, out of the box, that bootloader uses serial communication, so you'll have to use avrdude. Try setting up the arduino environment and use this guide to test it, https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide
Title: Re: atmega32u4 no device present
Post by: a-c on Sun, 19 June 2016, 13:07:19
Instructions here on how to flash a hex file to one of these: https://deskthority.net/workshop-f7/how-to-use-a-pro-micro-as-a-cheap-controller-converter-like-soarer-s-t8448.html (https://deskthority.net/workshop-f7/how-to-use-a-pro-micro-as-a-cheap-controller-converter-like-soarer-s-t8448.html)
Title: Re: atmega32u4 no device present
Post by: Khuya on Sun, 19 June 2016, 13:25:13
Thanks everyone, climbalima point me to AVRDUDESS and it's working now! :thumb:  my first 20% is done.  Now just need to wait for the trrs cable to arrive to connect the two halves :p
(http://i.imgur.com/hnnGR5U.jpg)
Title: Re: atmega32u4 no device present
Post by: Charger on Sun, 19 June 2016, 16:29:50
The issue with that bootloader is that it stays in DFU mode for a very short time IIRC. You can have it stay there for 8 secs, just ground the rest pin twice quickly. A switch helps for this. Also, IIRC, out of the box, that bootloader uses serial communication, so you'll have to use avrdude. Try setting up the arduino environment and use this guide to test it, https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide
I just made a bat file to program my pro micros to make it less work. Short the pins twice then run the batch file works well