# I've rewritten DevTerm keyboard & trackball firmware

**URL:** <https://forum.clockworkpi.com/t/ive-rewritten-devterm-keyboard-trackball-firmware/7671>\
**Category:** DevTerm\
**Created:** [December 16, 2021, 5:06am UTC](https://forum.clockworkpi.com/t/ive-rewritten-devterm-keyboard-trackball-firmware/7671 "2021-12-16T05:06:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [December 17, 2021, 5:05am UTC](https://forum.clockworkpi.com/t/ive-rewritten-devterm-keyboard-trackball-firmware/7671/5 "2021-12-17T05:05:52Z")

</div>

I created an automatic flashing package for the new firmware  
The commands are as follows

```auto
sudo apt install dfu-util -y

wget https://github.com/clockworkpi/DevTerm/raw/main/Code/devterm_keyboard/bin/DevTerm_keyboard_firmware_v0.2_utils.sh

chmod +x DevTerm_keyboard_firmware_v0.2_utils.sh

sudo ./DevTerm_keyboard_firmware_v0.2_utils.sh

```

### Problems and solutions

1. usually the first time of flashing will be no response,so you need to run  
` sudo ./DevTerm_keyboard_firmware_v0.2_utils.sh` again, and keyboard might not woking during the first flashing, so strongly recommend to do the whole job in SSH

2. make sure you have `/dev/ttyACM0` when the keyboard is ON the devterm,in the rare cases , keyboard will be renamed to other like `/dev/ttyAEM0` or else, that will cause the flashing failed,try the flashing when `/dev/ttyACM0` appears

here is no response screenshot

[![](https://raw.githubusercontent.com/clockworkpi/DevTerm/main/Pictures/flash_keyboard_no_response.png) ](https://raw.githubusercontent.com/clockworkpi/DevTerm/main/Pictures/flash_keyboard_no_response.png)  
here is flashing successful screeshot

[![](https://raw.githubusercontent.com/clockworkpi/DevTerm/main/Pictures/flash_keyboard_ok.png) ](https://raw.githubusercontent.com/clockworkpi/DevTerm/main/Pictures/flash_keyboard_ok.png)

### If you want old firmware back

```auto
sudo apt install dfu-util -y
wget https://github.com/clockworkpi/DevTerm/raw/main/Code/devterm_keyboard/bin/DevTerm_keyboard_firmware_v0.1_utils.sh

chmod +x DevTerm_keyboard_firmware_v0.1_utils.sh
sudo ./DevTerm_keyboard_firmware_v0.1_utils.sh

```

same process

### for coding/hacking tips

I only did the coding under Linux with Arduino IDE ,and I found out that, I need to use **root** with Arduino IDE so that the uploading process will work mostly,and I never succeeded to upload the code with Arduino in Windows,don’t know why

---

_[View the full topic](https://forum.clockworkpi.com/t/ive-rewritten-devterm-keyboard-trackball-firmware/7671)._
