TheKikGen/USBMidiKliK4x4

Pre-build binaries do not work for STM32F103C8T6

lhondareyte opened this issue · 1 comments

I try to flash a STM32F103C8T6 (bluepill) but it does not work: after uploading the firmware (with the following commands), the board seems to be stuck in bootloader mode and no midi device is detected.

To install bootloader:

git clone https://github.com/TheKikGen/stm32-tkg-hid-bootloader.git
cd cli
make -f Makefile.linux
install -m 755 binaries_dist/tkg-flash /usr/bin
cd ../stm32-tkg-hid-bootloader/F1/bootloader_only_binaries
st-flash write tkg_hid_generic_pc13.bin 0x08000000

To install firmware

git clone https://github.com/TheKikGen/USBMidiKliK4x4.git
cd USBMidiKliK4x4umk4x4/bin
tkg-flash umk4x4.stm32f103c8-64k-o2.bin

All is fine but after reset, the board is stuck in bootloader mode:

dmesg | tail -4
[ 1015.285729] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1015.285731] usb 2-2: Product: TKGL BTL
[ 1015.285731] usb 2-2: Manufacturer: TKGL BTL
[ 1015.286856] hid-generic 0003:1209:BEBA.0004: hiddev0,hidraw1: USB HID v1.11 Device [TKGL BTL TKGL BTL] on usb-0000:01:1b.0-2/inp

What am I missing?

After building firmware with this documentation, all is ok.