Flashing problem on Ubuntu (SOLVED)

@jessie Thank you for your support

TLDR; Factory restore successful! (Thank you)

Actions taken, for your information or for anyone that faces the same problem:-

  • grabbed the hex file.

  • I am a member of ‘dialout’

  • Without keyboardio plugged in:
    $ ls /dev/ttyACM*
    ls: cannot access ‘/dev/ttyACM*’: No such file or directory

  • With keyboardio plugged in:
    $ ls -al /dev/ttyACM*
    crw-rw---- 1 root dialout 166, 0 Nov 2 12:05 /dev/ttyACM0

  • After 8 seconds, out of curiosity:
    $ ls -al /dev/ttyACM*
    ls: cannot access ‘/dev/ttyACM*’: No such file or directory

  • Therefore safe to proceed.

The program ‘avrdude’ is currently not installed.
$ sudo apt install avrdude

Setting up avrdude (6.3-2)

$ avrdude -patmega32u4 -cavr109 -D -P /dev/ttyACM0 -b57600 -Uflash:w:atmega32u4_firmware.hex:i

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 "atmega32u4_firmware.hex"
avrdude: writing flash (18726 bytes):

Writing | ################################################## | 100% 2.43s

avrdude: 18726 bytes of flash written
avrdude: verifying flash memory against atmega32u4_firmware.hex:
avrdude: load data flash data from input file atmega32u4_firmware.hex:
avrdude: input file atmega32u4_firmware.hex contains 18726 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.17s

avrdude: verifying …
avrdude: 18726 bytes of flash verified

avrdude: safemode: Fuses OK (E:FB, H:D8, L:FF)

avrdude done. Thank you.

  • and now I’m typing this on the keyboardio!
  • unplugged it and tried it again. Still works.
  • rebooted. Still works.
  • I will flash again later with the https://github.com/keyboardio/Model01-Firmware, but without changing the Model01-Firmware.ino
  • if that’s good I’ll try editing again. I will report back on this thread.
  • Thank you for your help
2 Likes