Uploading .hex to Arduino Leonardo pro micro atmega32u

Other hardware interoperability tutorials for game consoles.
Post Reply
User avatar
Posts: 110
Joined: Sun Jul 10, 2011 1:10 pm

Uploading .hex to Arduino Leonardo pro micro atmega32u

Post by Cybereu » Sat Jun 30, 2018 2:47 am

GIMX was not recognizing my Leonardo so I couldn't install firmware throw it, after researching I found that Leonardo atmega32u4 need reset to enter bootloader to upload
The reset procedure is: open port at 1200 bps with DTR=false, and close.
You need to wait 1 second to reset and the bootloader then you can talk to the bootloader and upload the firmware.

This python script do the job:

Adjust "dev/ttyACM0" check with "ls /dev/ttyACM*" what's your device.

Code: Select all

#!/usr/bin/env python
import serial
ser = serial.Serial()
ser.close() #with it is already open, close it.
ser.open(); ser.close()
Linux 4ev

User avatar
Posts: 542
Joined: Thu Apr 28, 2016 12:47 pm
Location: Poland

Re: Uploading .hex to Arduino Leonardo pro micro atmega32u

Post by GoDlike » Sat Jun 30, 2018 9:33 am

Weird, did you use the latest version? Im also using atmega32u4 leonardo clone and gimx-loader was automatically resetting the chip, I was also asked to replug the cable.
My hardware: Xbox 360 S "Trinity" RGH | PS3 Slim CFW 4.80 | PS4 6.00 | Mouse: 8 years old Gigabyte M8000x :mrgreen:
My Steam: http://steamcommunity.com/id/Godlike_RU/ | PSN: GoDlike_RU

User avatar
Posts: 5041
Joined: Wed Jul 06, 2011 7:01 am
Location: France

Re: Uploading .hex to Arduino Leonardo pro micro atmega32u

Post by Matlo » Mon Jul 02, 2018 8:28 pm

gimx-loader uses avrdude, which uses the same trick to enable the bootloader. It may not work on GNU/LInux with boards that were not already flashed. This is due to the same port name being reused after replugging.
GIMX creator Donate Shop

Post Reply