GIMX adapter changing firmware Linux

Need help? Ask here and someone will help
Post Reply
GavWarrior
Posts: 19
Joined: Mon Jun 16, 2014 4:25 pm

GIMX adapter changing firmware Linux

Post by GavWarrior » Sun Jun 11, 2017 5:30 am

Hello

So I purchased the official adapter but I am struggling with changing the firmware. I am sure this is going to be a very simple thing but here is where I am stuck.

The adapter based on the atmega32u4 chip but when I look at the loaders available I see that it seems the linux varients state "not compatible with genuine teensy boards and with Arduino-compatible atmega32u4-based boards".

I may be missing something obvious but that is nothing new to me. If someone could help I am sure the rest will be easy.

Regards

Gavin

User avatar
Matlo
Posts: 4245
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: GIMX adapter changing firmware Linux

Post by Matlo » Mon Jun 12, 2017 7:39 am

Hi,
It's possible using avrdude: https://gimx.fr/wiki/index.php?title=DI ... ng_Avrdude
Just make sure to follow the instructions step by step.
You can skip the driver installation which only applies to Windows, and use the avrdude command suggested at the end of the section.
Donate Shop

GavWarrior
Posts: 19
Joined: Mon Jun 16, 2014 4:25 pm

Re: GIMX adapter changing firmware Linux

Post by GavWarrior » Mon Jun 12, 2017 7:36 pm

Thanks Matlo

Well I have moved forward but stuck I am getting an error which seems to be generic.
avrdude: ser_open(): can't open device "/dev/ttyACM0": No such file or directory
From the digging around I have done it is almost as if it is not being detected hence why I am not seeing /dev/ttyACM0.

Do you have any suggestions?

User avatar
Matlo
Posts: 4245
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: GIMX adapter changing firmware Linux

Post by Matlo » Mon Jun 12, 2017 7:42 pm

Connect both sides of the adapter to the RPi.
Unplug/replug the USB cable from/to the RPi USB port, and run the avrdude command shortly.
Donate Shop

GavWarrior
Posts: 19
Joined: Mon Jun 16, 2014 4:25 pm

Re: GIMX adapter changing firmware Linux

Post by GavWarrior » Mon Jun 12, 2017 8:01 pm

Sorry Matlo, I realised I didn't explain what I was doing.

I am trying to load the firmware on to the GIMX adapter initially. The file I need to load is atmega32u4.hex for a standard PS4 controller (under folder EMUPS4).

Unless the EMUG29PS4 hex file supports the PS4 controller in which I am wasting your time and I grovel for forgiveness. :D

GavWarrior
Posts: 19
Joined: Mon Jun 16, 2014 4:25 pm

Re: GIMX adapter changing firmware Linux

Post by GavWarrior » Mon Jun 12, 2017 9:02 pm

Hello Matlo

I am all sorted now.

I managed to run the sequence as you suggested.

To help others.

1. Plug in both the USB and USB cables
2. Remove the USB cable
3. Plug USB cable back in
4. Use the command 'chmod 777 /dev/ttyAMC0
5. Remove the USB cable again
6. Plug the USB cable back in again
7. Run the command "avrdude -p atmega32u4 -c avr109 -P /dev/ttyACM0 -D -U flash:w:atmega32u4.hex:i"

Note that the Hex file you wish to load must be in the same directory as you are running the command. I found this the easiest way.

User avatar
Matlo
Posts: 4245
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: GIMX adapter changing firmware Linux

Post by Matlo » Wed Jun 14, 2017 9:13 am

Hi,
I will include a firmware loading tool in the next GIMX release (6.8).
Donate Shop

GavWarrior
Posts: 19
Joined: Mon Jun 16, 2014 4:25 pm

Re: GIMX adapter changing firmware Linux

Post by GavWarrior » Tue Jun 20, 2017 5:05 am

Cool. Thank you for your help on this its been very appreciated.

Post Reply