# Flashing problem on Ubuntu (SOLVED)

**URL:** <https://community.keyboard.io/t/flashing-problem-on-ubuntu-solved/628>\
**Category:** Help and Getting Started\
**Created:** [October 31, 2017, 11:27am UTC](https://community.keyboard.io/t/flashing-problem-on-ubuntu-solved/628 "2017-10-31T11:27:21Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![richard.east](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@richard.east](https://community.keyboard.io/u/richard.east)\
**Post date:** [November 2, 2017, 12:47pm UTC](https://community.keyboard.io/t/flashing-problem-on-ubuntu-solved/628/14 "2017-11-02T12:47:13Z")

</div>

@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](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

---

_[View the full topic](https://community.keyboard.io/t/flashing-problem-on-ubuntu-solved/628)._
