Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news


  

Author Topic: Loading firmware hex and EEPROM hex files on 32u4 Arduino or Teensy 2.0 boards  (Read 498 times)

0 Members and 1 Guest are viewing this topic.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6437
  • 2013 UCA Awardee
KADE miniArcade 2.0 beta release is now available here.

One of the features that Bruno included in the Mapper program is the option to export a custom EEPROM hex file.

The EEPROM file contains the configuration data for the miniArcade 2.0 firmware hex file.

Without the EEPROM file, the firmware hex reverts to default gamepad mode.

To customize the encoder inputs/outputs, users need to load both the firmware and EEPROM files to their AVR.

Here's what we have so far:
Quote
Arduino boards:
AVRDUDE front end that it seems to make it easy to flash both firmware and eeprom data:
http://blog.zakkemble.co.uk/avrdudess-a-gui-for-avrdude/

It should work with Arduino boards (you might need to select the right programmer option depending on the arduino board). I've never tested it though...

Teensy boards:
Need to find a way to pack an ELF file containing both the firmware and EEPROM data:

https://forum.pjrc.com/threads/42195-Flashing-firmware-eeprom-data-to-Teensy-2-0

Either that or to find a way to replace Teensy 2.0's native bootloader (HalfKay) to a DFU based one...

Any software and/or "how-to" procedure recommendations and testing would be greatly appreciated.   ;D


Scott

bootsector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 79
  • I want to build my own arcade controls!
Adapted from the XBOXPadMicro manual available at:

https://drive.google.com/open?id=1wF3S697crrigmpRB93IHXBsS6oylC_RSxvSNOloRzB4

The steps in order to flash KADE miniArcade 2.0 firmware and EEPROM data to an Arduino Leonardo/Mini should be something like:

On Windows:

avrdude -p atmega32u4 -P COMXX -c avr109 -U flash:w:MINIARCADE2.hex -U eeprom:w:EEPROM.hex -C avrdude.conf

*Change COMXX to the port assigned to the Arduino bootloader (this can be found from the Device Manager properties screen)

Make sure to install the Arduino drivers as per described in the XBOXPadMicro manual before running the command above.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6437
  • 2013 UCA Awardee
Thanks, Bruno.   :cheers:

I typed up some preliminary procedures, but they need some work.

If anyone has an Arduino and wants to try loading the miniArcade 2.0 firmware and EEPROM using avrdude:

1. Install the avrdude programmer.

2. Install the Arduino Leonardo/Mini bootloader driver as per the instructions at https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc2

3. Configure miniArcade 2.0 Mapper as desired.

4. Click on "Tools -- Save EEPROM config data to file (HEX)..." and save the "EEPROM.eep" file in the "\firmwares\" folder.

5. Rename "EEPROM.eep" to "EEPROM.hex". (both are hex format)

6. Copy the "MINIARCADE2.hex" and "EEPROM.hex" files from the "\firmwares\" folder to the avrdude folder.

7. Find the COM port assigned to the Arduino bootloader.  Look in the Device Manager properties screen or the Arduino software under Tools--Serial Port (look for the check mark)

8. Create a "miniArcade2.txt" file with this text in the avrdude directory. (Change "COMXX" to the Arduino bootloader port i.e. "COM7")

Quote
avrdude -p atmega32u4 -P COMXX -c avr109 -U flash:w:MINIARCADE2.hex -U eeprom:w:EEPROM.hex -C avrdude.conf

9. Rename "miniArcade2.txt" to "miniArcade2.bat".

10. Launch the .bat file to program the Arduino.

*** Still need to confirm/refine this procedure. Suggestions welcome.  ;D ***


Scott

  
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31