# DevTerm Keyboard firmware mods

**URL:** <https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995>\
**Category:** DevTerm\
**Tags:** keyboard, firmware, mods\
**Created:** [August 26, 2021, 3:09pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995 "2021-08-26T15:09:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)\
**Post date:** [August 26, 2021, 3:09pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/1 "2021-08-26T15:09:34Z")

</div>

During the stream yesterday, I made a couple of comments on how the keyboard/trackball could be improved and I made these changes on my own copy of the DevTerm repository:

> <https://github.com/Godzil/DevTerm/commit/b411a50e0bdbbc9894004c9211c18506d19ac58a>
>
> Now Fn + trackball do act like a mouse wheel
> 
> The Cmd key now report as Left met…a instead of Right Meta.
> Fn+Cmd to report as Right Meta
> 
> Fn + '-' now act as a volume mute key
> 
> A bit of reformating (not critical was just for my own lisibility)

The changes are:

```plaintext
Fn + Trackball no longer trigger the "slow movement mote" but allow to use the mouse scroll wheel (only up/down for now, need to find how to set for left/right)
Now to set the trackball speed you use Fn + Left button for normal speed
Fn + Middle button for "slow" speed
Fn + Right button is currently an unused third mode that do the same as the normal one.
Cmd now send LEFT META by default (left command or left windows key)
Fn + Cmd send the RIGHT META Key.
Fn + "-" (the key just on the right of the trackball) do send a volume mute key.

```

Hope it will be useful to someone, I will document how to flash the keyboard firmware a bit later.

A bit of a warning from @guu if you want to hack the keyboard firmware:

> and do not use Serial.println , if your code need to print through Serial, use something like ` dev_term._Serial->println("setup done");`  
> once the Serial.println executed, it will block the bootloader of DT’s keyboard

And the only way to recover then is to flash using an external programer, so be careful people!

---

<div class="post-metadata">

**Author:** ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)\
**Post date:** [August 26, 2021, 6:45pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/3 "2021-08-26T18:45:33Z")

</div>

Updated the readme with some infos on how to build:

> **[DevTerm/Code/devterm\_keyboard at main · Godzil/DevTerm](https://github.com/Godzil/DevTerm/tree/main/Code/devterm_keyboard)**
>
> main/Code/devterm\_keyboard

---

<div class="post-metadata">

**Author:** ![Leo3065](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/leo3065/32/5121_2.png) [@Leo3065](https://forum.clockworkpi.com/u/Leo3065)\
**Post date:** [December 14, 2021, 2:24pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/4 "2021-12-14T14:24:45Z")

</div>

I followed the steps, but when I tried to upload, it gives

```auto
Searching for DFU device [1EAF:0003]...
dfu-util - (C) 2007-2008 by OpenMoko Inc.
Couldn't find the DFU device: [1EAF:0003]

```

Did I missed something?

---

<div class="post-metadata">

**Author:** ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)\
**Post date:** [December 14, 2021, 3:19pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/5 "2021-12-14T15:19:39Z")

</div>

There is a bug in some conditions with the Arduino IDE where the upload will not work, try to run the DFU app by hand from the command line, it should work.

---

<div class="post-metadata">

**Author:** ![Leo3065](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/leo3065/32/5121_2.png) [@Leo3065](https://forum.clockworkpi.com/u/Leo3065)\
**Post date:** [December 14, 2021, 7:03pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/6 "2021-12-14T19:03:48Z")

</div>

I tried to run `dfu-util.exe -l` with the DevTerm’s keyboard plugged in, but it didn’t find any DFU device.

---

<div class="post-metadata">

**Author:** ![Jory\_Griffis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/jory_griffis/32/5605_2.png) [@Jory\_Griffis](https://forum.clockworkpi.com/u/Jory_Griffis)\
**Post date:** [December 14, 2021, 7:47pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/7 "2021-12-14T19:47:06Z")

</div>

In Windows 10, I had to install a separate stm32 DFU driver and then reboot to enable unsigned drivers in order to get the Arduino IDE upload to work!

---

<div class="post-metadata">

**Author:** ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)\
**Post date:** [December 14, 2021, 11:17pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/8 "2021-12-14T23:17:18Z")

</div>

Has Jory said, you probably miss a driver, does windows show an unknown device in the device list?

---

<div class="post-metadata">

**Author:** ![Leo3065](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/leo3065/32/5121_2.png) [@Leo3065](https://forum.clockworkpi.com/u/Leo3065)\
**Post date:** [December 16, 2021, 1:01pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/9 "2021-12-16T13:01:47Z")

</div>

I installed the driver from [here](https://www.st.com/en/development-tools/stsw-stm32080) by installing and running `C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.6\Bin\Driver\Win10\dpinst_amd64.exe`, and after that I was able to use `dfu-util.exe` to upload. However after that, the whole keyboard became unresponsive. Running `dfu-util.exe -l` now gives the following and I was unable to upload:

```auto
Found DFU: [1eaf:0003] ver=0201, devnum=35, cfg=1, intf=0, path="1-2", alt=2, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [1eaf:0003] ver=0201, devnum=35, cfg=1, intf=0, path="1-2", alt=1, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [1eaf:0003] ver=0201, devnum=35, cfg=1, intf=0, path="1-2", alt=0, name="UNKNOWN", serial="UNKNOWN"

```

In the device manager, it shows as Maple 003 under USB devices:  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/a/aa46af4c391fc95391a2983114b3286e76a0a407.png)

---

<div class="post-metadata">

**Author:** ![Leo3065](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/leo3065/32/5121_2.png) [@Leo3065](https://forum.clockworkpi.com/u/Leo3065)\
**Post date:** [December 16, 2021, 1:30pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/10 "2021-12-16T13:30:19Z")

</div>

Update: I fix the problem and successfully upload the new firmware. Here is what I did:

1. Uninstall the device from the device manager. Only the device.
2. With the device still connected, set the switch 2 (the one closer to R3). That switch is connected to BOOT0 for the STM32 according to the [schematic](https://github.com/clockworkpi/DevTerm/blob/main/Schematics/clockwork_DevTerm_Keyboard_Schematic.pdf).
3. Short the S1 (which is connected to RSTN) to reset the device to make it enters DFU Mode. (According to the schematic, there should be some kind of button there?)
4. Upload the new firmware.

---

<div class="post-metadata">

**Author:** ![hobby\_grade](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hobby\_grade](https://forum.clockworkpi.com/u/hobby_grade)\
**Post date:** [January 3, 2022, 4:35pm UTC](https://forum.clockworkpi.com/t/devterm-keyboard-firmware-mods/6995/11 "2022-01-03T16:35:51Z")

</div>

With this board running STM32, would it be possible to flash QMK on it? It would be great to be able to use a non-QWERTY layout.
