Hello to all
I've been searching on this forum and the web for a complete tutorial for install hex on atmega32u4 without fortune.
I've bought this two items:
http://www.ebay.it/itm/151843552369?_tr ... EBIDX%3AIT
http://www.ebay.it/itm/151765184076?_tr ... EBIDX%3AIT
Do i need anything more?
I've connected the atmega on pc with usb and tried to install the hex file with flip, but i says an error "could not open usb device".
Should i solder something before i do this procedure?
I'm sorry if the question is not related with this forum, i thought it was easier than this.
Can not find tutorial for atmega32u4 hex install
-
- Posts: 20
- Joined: Mon Jun 15, 2015 6:55 am
Re: Can not find tutorial for atmega32u4 hex install
Hi
Don't know if this will help but if you solder a switch to rst and ground and press it twice it should enter bootloader mode so you can program via usb.
You also need to install the driver and remember the com port that's assigned to it. Just a quick note that after you press the switch twice it will only show for about 7 seconds so you have to be quick I recommend you leave device manager open so you can see when it enters bootloader mode.
You can then use AVR dude with the following options opening a command window and going to the Winavr directory don't forget to copy the hex file to the directory as well. Replace X with the com port number that shows when you press the switch twice.
avrdude.exe -p ATmega32U4 -c avr109 -P COMX -U flash:w:"atmega32u4.hex":i
https://learn.sparkfun.com/tutorials/pr ... okup-guide
Hope this can help
Don't know if this will help but if you solder a switch to rst and ground and press it twice it should enter bootloader mode so you can program via usb.
You also need to install the driver and remember the com port that's assigned to it. Just a quick note that after you press the switch twice it will only show for about 7 seconds so you have to be quick I recommend you leave device manager open so you can see when it enters bootloader mode.
You can then use AVR dude with the following options opening a command window and going to the Winavr directory don't forget to copy the hex file to the directory as well. Replace X with the com port number that shows when you press the switch twice.
avrdude.exe -p ATmega32U4 -c avr109 -P COMX -U flash:w:"atmega32u4.hex":i
https://learn.sparkfun.com/tutorials/pr ... okup-guide
Hope this can help
Re: Can not find tutorial for atmega32u4 hex install
Thanks Kakiharasama, this is really useful!
GIMX creator
-
- Posts: 20
- Joined: Mon Jun 15, 2015 6:55 am
Re: Can not find tutorial for atmega32u4 hex install
Any time Malto when I get time I will do a full tutorial with some pics.
Thank you
Thank you
Re: Can not find tutorial for atmega32u4 hex install
Thank you for information, i will try as soon as possible
I assume that the only way is to solder that switch and use AVRdude.
Is possible to use flip and avoid avrdude when it will be in bootloader?
Do i need to install the driver before going to bootloader mode?
This topic could be useful for a really newbie guide with atmega

I assume that the only way is to solder that switch and use AVRdude.
Is possible to use flip and avoid avrdude when it will be in bootloader?
Do i need to install the driver before going to bootloader mode?
This topic could be useful for a really newbie guide with atmega
-
- Posts: 20
- Joined: Mon Jun 15, 2015 6:55 am
Re: Can not find tutorial for atmega32u4 hex install
I only got it to work with avrdude you need to open device manager and press the button twice and right click on the new device that shows under unknown devices and specify the driver. After that if you press the button twice it will show under com ports
Re: Can not find tutorial for atmega32u4 hex install
I've tried to connect the atmega to pc with micro usb. In device manager it shows only a device called Arduino Leonardo, even if i try to connect reset + ground, it disconnects for a second and it appears another Arduino Leonard device (that it disappear after 4 seconds), after that it reappear the first Arduino Leonardo device. There are not unknown devices.
I tried to install the Sparkfun driver and, after the installation, it comes with Sparkfun pro micro on COM4 (it is too much quickly trying the installation of the driver when reset and ground are connected and disconnected, so i installed the device called Arduino Leonardo when it is connected the "standard" way).
After the Sparkfun driver installation on COM4 i try your command on cmd but it says:
connecting to programmer:.
found programmer: id = ; type =
software version = . ; hardware version = .
"avrdude.exe: error: buffered memory access not supported. Maybe it isn't a butterfly/avr109 but a avr910 device?"
I tried to install the Sparkfun driver and, after the installation, it comes with Sparkfun pro micro on COM4 (it is too much quickly trying the installation of the driver when reset and ground are connected and disconnected, so i installed the device called Arduino Leonardo when it is connected the "standard" way).
After the Sparkfun driver installation on COM4 i try your command on cmd but it says:
connecting to programmer:.
found programmer: id = ; type =
software version = . ; hardware version = .
"avrdude.exe: error: buffered memory access not supported. Maybe it isn't a butterfly/avr109 but a avr910 device?"
-
- Posts: 20
- Joined: Mon Jun 15, 2015 6:55 am
Re: Can not find tutorial for atmega32u4 hex install
You need to right click it before it exits bootloader mode and update the driver manually. The port it shows in the standard way as you describe it can not be used to program it. My drivers are showing as Arduino Micro in normal mode and Arduino Micro bootloader after the reset button is pressed two times. It has to be in bootloader mode to program. Like I said you have to be quick, open your command window and type the command then press the button twice and quickly press enter to program.
It should show this
trying to connect to device...
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9587
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be perform
ed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "atmega32u4.hex"
avrdude: writing flash (4610 bytes):
Writing | ################################################## | 100% 0.48s
avrdude: 4610 bytes of flash written
avrdude: verifying flash memory against atmega32u4.hex:
avrdude: load data flash data from input file atmega32u4.hex:
avrdude: input file atmega32u4.hex contains 4610 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.14s
avrdude: verifying ...
avrdude: 4610 bytes of flash verified
avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)
avrdude done. Thank you.
Press any key to continue . . .
It should show this
trying to connect to device...
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9587
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be perform
ed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "atmega32u4.hex"
avrdude: writing flash (4610 bytes):
Writing | ################################################## | 100% 0.48s
avrdude: 4610 bytes of flash written
avrdude: verifying flash memory against atmega32u4.hex:
avrdude: load data flash data from input file atmega32u4.hex:
avrdude: input file atmega32u4.hex contains 4610 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.14s
avrdude: verifying ...
avrdude: 4610 bytes of flash verified
avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)
avrdude done. Thank you.
Press any key to continue . . .
Re: Can not find tutorial for atmega32u4 hex install
Thank you, it worked. Now i'm trying to find a goog configuration for xbox one profile.
Just for being clear with a possible newbie like me that will read this topic, this part of code U flash:w:"atmega32u4.hex":i should be renamed with the folder (ex. U flash:w:"C\atmega32u4.hex":i).
I had another problem with controller input. You should install the libusdk driver and then if doesn't work try to revert tx/rx (in my case rx is connected to rx, don't know why).
If you need further information i'm here
Just for being clear with a possible newbie like me that will read this topic, this part of code U flash:w:"atmega32u4.hex":i should be renamed with the folder (ex. U flash:w:"C\atmega32u4.hex":i).
I had another problem with controller input. You should install the libusdk driver and then if doesn't work try to revert tx/rx (in my case rx is connected to rx, don't know why).
If you need further information i'm here

Re: Can not find tutorial for atmega32u4 hex install
I realized that my pro micro runs the bootloader during 8 seconds if I unplug and replug it while keeping the CP2102 plugged and powered.
Do you get such a behaviour?
Do you get such a behaviour?
GIMX creator