Flashing the stock keyboard firmware (and unbricking it)
ClockworkPi's flash tool updates the keyboard's STM32 over the internal USB with dfu-util, no disassembly; the UART route and the S1 pads recover a bricked one.
What it takes
- Firmware flash
Difficulty 2 of 3 — moderate.
Details
The keyboard is an STM32F103 running an Arduino (STM32duino, USBComposite) sketch published in the clockworkpi/uConsole repo. cuu added the Fn + trackball scroll mode and the uconsole_keyboard_flash.tar.gz tool in November 2023: install dfu-util and run sudo ./flash.sh on the uConsole itself or an Ubuntu 22.04 PC. The wiki warns not to confuse the tool's binary with the uconsole.kbd.*.bin images, which are for the UART method.
If a flash fails, dexpid's fix is to take the keyboard out, connect it by micro-USB, bridge the unpopulated S1 pads and run the flash command during the green LED blink — it can take a few tries. The wiki's UART guide uses a serial adapter on the 6-pin FPC (TX on PA9, RX on PA10, and ground, which one reply forgot) with stm32flash at 57600 baud and switch 1 on; SkyRanger used an ST-Link and STM32CubeProgrammer instead.


