Flashing .Hex Files – ‘painful’ – a solution

Wow, What a few weeks this has been.

My previous QMK on my small dev laptop worked great. However, moving the directories over to my new laptop (after the kids smashed the old one) – Not working so great

I was now stuck with a handful of ‘blank’ arduinos and no way to update the firmware code, nor any easy way to flash the .hex files to them

Long story short – a friend familiar with programming Arduinos found me this

https://github.com/p1ne/arduino-leonardo-uploader

It didn’t work!….BUT playing aroudn. it at least did pickup something

So….Digging further…I found

https://github.com/p1ne/arduino-leonardo-uploader/issues/5#issuecomment-407583517

I tried the code, didn’t work

Tried again and………Woooo!

  • C:\1leo\arduino-leonardo-uploader-master\windows>testu
    Upgrade procedure starting.
    Missing parameter or file, you should provide the full filename of an existing .hex file you want to use.
  • C:\1leo\arduino-leonardo-uploader-master\windows>testu C64_default.hex
    Upgrade procedure starting.
    Com Port for Arduino device is detected as COM7.
    Reset Arduino into bootloader
    Com Port for Arduino bootloader device is detected as COM6.
  • Starting AVR Downloader/UploaDEr…..
  • 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 (probably m32u4)
    avrdude: reading input file “C64_default.hex”
    avrdude: input file C64_default.hex auto detected as Intel Hex
    avrdude: writing flash (22924 bytes):
  • Writing | ################################################## | 100% 2.09s
  • avrdude: 22924 bytes of flash written
    avrdude: verifying flash memory against C64_default.hex:
    avrdude: load data flash data from input file C64_default.hex:
    avrdude: input file C64_default.hex auto detected as Intel Hex
    avrdude: input file C64_default.hex contains 22924 bytes
    avrdude: reading on-chip flash data:
  • Reading | ################################################## | 100% 0.46s
  • avrdude: verifying …
    avrdude: 22924 bytes of flash verified
  • avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)
  • avrdude done. Thank you.
  • Upgrade done!
    C:\1leo\arduino-leonardo-uploader-master\windows>

So, where i’m at now……

I can actually program up arduinos for Mini keyboard kits!

The printer actually seems to be functioning

I’m back in Business

What’s next though

Figure out QMK, I’ve found a lovely chap who’s helping out a bit to compile my keyboard into the new version of QMK being used….then I can finally start doing some development again!

and, more importantly, get this C64Mini keyboard listed in QMK for you guys to be able to easily play with the firmware….

Author: Bleugh

Early Fourties, Wife, two kids in primary school. Both of us work full time...3 years now Back in Blighty after a decade away...It's a new country for everyone! Still finding time to tinker!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s