thompson-vii / kb16_rev2_vial_fw

compiled firmware for doio's kb16 rev2 (aka megalodon trip knob macropad)
65 stars 25 forks source link

May have bricked KB16-01 #1

Open Bestmixtape opened 2 years ago

Bestmixtape commented 2 years ago

Hi, I tried to flash my KB16-01. The flash seemed to be successful the first time, with the Rainbow Style RGB backlight on the macropad after the install, but even after a reset, it wouldn't get detected in VIAL.

I tried the firmware update again, and I believe that was an error on my part, and now the macropad seems to be bricked. It gets detected in QMK toolbox, but I get a firmware update issue. STM32Duino device connected (WinUSB): (Undefined Vendor) Maple 003 (1EAF:0003:0201) Attempting to flash, please don't remove device

dfu-util.exe -a 2 -d 1EAF:0003 -R -D "E:\userdata\Downloads\doio_kb16_rev2_vial.bin" dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2021 Tormod Volden and Stefan Schmidt Failed to retrieve language identifiers This program is Free Software and has ABSOLUTELY NO WARRANTY Failed to retrieve language identifiers Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ Cannot set alternate interface: LIBUSB_ERROR_IO

Opening DFU capable USB device... Device ID 1eaf:0003 Device DFU version 0110 Claiming USB DFU Interface... Setting Alternate Interface #2 ... Flash complete

OLED doesn't light up, nor does it get detected in VIAL. It has the APM32 Chipset.

Update

I was able to re-upload the firmware by playing around with reset button on the PCB.

STM32Duino device connected (WinUSB): (Undefined Vendor) Maple 003 (1EAF:0003:0201) Attempting to flash, please don't remove device

dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2021 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device... Device ID 1eaf:0003 Device DFU version 0110 Claiming USB DFU Interface... Setting Alternate Interface #2 ... Determining device status... DFU state(2) = dfuIDLE, status(0) = No error condition is present DFU mode device DFU version 0110 Device returned transfer size 1024 Copying data from PC to DFU device

Download [ ] 0% 0 bytes Download [= ] 4% 3072 bytes Download [== ] 8% 5120 bytes Download [=== ] 13% 8192 bytes Download [==== ] 16% 10240 bytes Download [==== ] 18% 11264 bytes Download [===== ] 21% 13312 bytes Download [====== ] 24% 15360 bytes Download [======= ] 28% 17408 bytes Download [======== ] 33% 20480 bytes Download [========= ] 36% 22528 bytes Download [========== ] 41% 25600 bytes Download [=========== ] 44% 27648 bytes Download [============ ] 49% 30720 bytes Download [============= ] 52% 32768 bytes Download [============== ] 56% 34816 bytes Download [=============== ] 61% 37888 bytes Download [================ ] 64% 39936 bytes Download [================= ] 69% 43008 bytes Download [================== ] 72% 45056 bytes Download [=================== ] 76% 47104 bytes Download [==================== ] 80% 50176 bytes Download [===================== ] 84% 52224 bytes Download [====================== ] 89% 55296 bytes Download [======================= ] 92% 57344 bytes Download [======================== ] 97% 60416 bytes Download [=========================] 100% 60936 bytes Download done. DFU state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present Resetting USB to switch back to runtime mode Done! Resetting USB to switch back to Run-Time mode Flash complete

But still can't get it detect in VIAL.

I tried CLI, updates okay from there too, but still nothing in VIAL on both MacOS and Windows 11.

qmk flash doio_kb16_rev2_vial.bin
Flashing binary firmware...
Please reset your keyboard into bootloader mode now!
Press Ctrl-C to exit.

dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
Device ID 1eaf:0003
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #2 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0110
Device returned transfer size 1024
Copying data from PC to DFU device
Download [=========================] 100% 60936 bytes
Download done.
DFU state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present Resetting USB to switch back to runtime mode
Done!
Resetting USB to switch back to Run-Time mode

thompson-vii commented 2 years ago

https://wiki.keebmonkey.com/en/guides/MacroPad3rdPartyFlash

try this one

thompson-vii commented 2 years ago

if it still doesn't work then you might have bricked the bootloader

i would check with the qmk discord then.

yardern commented 1 year ago

Mine has got bricked too during the flashing of this firmware. Got a message "Error during download get_status (LIBUSB_ERROR_TIMEOUT" at 76% of the download.

Has anybody tried to unbrick it with "st-link v2 dongle"?

Edit on July 13, 2023: Found the reason why it was bricked: the firmware I downloaded was 145KB (I right clicked the file on the main page then saved it, it is actually a text file! Why it works like this?) I downloaded again today and it is 60KB. I unbricked it with "st-link v2 dongle" and flashed kb16_rev2_vial_fw again. It is working!

Thanks to @thompson-vii for this great work!

OllieJW commented 1 year ago

I accidently used this on my KB-16 (1) and it works fine. Just make sure your following instructions properly

Flopalop2 commented 1 year ago

Mine has got bricked too during the flashing of this firmware. Got a message "Error during download get_status (LIBUSB_ERROR_TIMEOUT" at 76% of the download.

Has anybody tried to unbrick it with "st-link v2 dongle"?

Edit on July 13, 2023: Found the reason why it was bricked: the firmware I downloaded was 145KB (I right clicked the file on the main page then saved it, it is actually a text file! Why it works like this?) I downloaded again today and it is 60KB. I unbricked it with "st-link v2 dongle" and flashed kb16_rev2_vial_fw again. It is working!

@yardern how did you manage to unbrick it with the dongle? I seem to have done something similar to mine.

yardern commented 1 year ago

@Flopalop2 Have you got the dongle? You basiclly follow this: https://docs.qmk.fm/#/isp_flashing_guide?id=flashing-stm32duino-bootloader

Flopalop2 commented 1 year ago

@yardern that is exactly the guide I was looking for. I have the dongle I just couldn't figure it out. Thanks!