Page 1 of 1

GIMX adapter changing firmware Linux

Posted: Sun Jun 11, 2017 5:30 am
by GavWarrior
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

Re: GIMX adapter changing firmware Linux

Posted: Mon Jun 12, 2017 7:39 am
by Matlo
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.

Re: GIMX adapter changing firmware Linux

Posted: Mon Jun 12, 2017 7:36 pm
by GavWarrior
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?

Re: GIMX adapter changing firmware Linux

Posted: Mon Jun 12, 2017 7:42 pm
by Matlo
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.

Re: GIMX adapter changing firmware Linux

Posted: Mon Jun 12, 2017 8:01 pm
by GavWarrior
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

Re: GIMX adapter changing firmware Linux

Posted: Mon Jun 12, 2017 9:02 pm
by GavWarrior
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.

Re: GIMX adapter changing firmware Linux

Posted: Wed Jun 14, 2017 9:13 am
by Matlo
Hi,
I will include a firmware loading tool in the next GIMX release (6.8).

Re: GIMX adapter changing firmware Linux

Posted: Tue Jun 20, 2017 5:05 am
by GavWarrior
Cool. Thank you for your help on this its been very appreciated.