kinx-project / kint

kinT keyboard controller (Kinesis controller replacement)
Other
325 stars 41 forks source link

RESET quantum keycode does not work with Teensy 3.6 #7

Closed ameyp closed 4 years ago

ameyp commented 4 years ago

I've modded my Advantage 1 with a Teensy 3.6 and the RESET quantum keycode doesn't seem to work. When I run qmk flash and qmk is at Waiting for Teensy device... (hint: press the reset button), sending the RESET keycode with a keypress doesn't put the board in bootloader mode and I have to press the physical button to allow flashing to proceed.

stapelberg commented 4 years ago

Thanks for the report. I indeed never tested this, because I had just assumed that reset is only for restarting the keyboard, not for reprogramming it :)

https://www.pjrc.com/teensy/jump_to_bootloader.html is relevant, but doesn’t contain an address for the Teensy 3.6.

Let me see if this might be an easy fix.

stapelberg commented 4 years ago

Looks like on the Teensy 3.x, we need to call the BKPT instruction: https://forum.pjrc.com/threads/30521-Rebooting-Teensy-(LC-3-0)-to-bootloader-without-Teensyduino

stapelberg commented 4 years ago

I think commit https://github.com/kinx-project/qmk_firmware/commit/bb8ab07b477b8de7175db24a04e1a3569028da98 might help, but can’t test it right now. Can you git pull in your branch, recompile, reflash, and try again?

stapelberg commented 4 years ago

Just had a chance to test, and with the commit, the QK_RESET keycode jumps to the bootloader for me :)

ameyp commented 4 years ago

Works for me too, thanks!

lread commented 1 year ago

Oh, this is cool, I can flash via my Teensy without having to press the button on the Teensy?

I think RESET might have since been renamed to QK_BOOTLOADER in commit.

lread commented 1 year ago

Oh. Interesting, I see QK_BOOT is now mapped to the progm key in the default keymap.c.

lread commented 1 year ago

And it actually works! Noice!

@stapelberg This is very handy, especially for folks who put the screws back in their keyboards! I'm happy to add a note to the README, if you agree that makes sense.

stapelberg commented 1 year ago

@stapelberg This is very handy, especially for folks who put the screws back in their keyboards! I'm happy to add a note to the README, if you agree that makes sense.

Sure, I guess? This is a standard QMK feature, so a quick note with a link to their documentation should be sufficient.

lread commented 1 year ago

Thanks for the reply! Because my motivation was to get my failing Advantage2 working again, I came to your project first and then learned a bit about QMK. Maybe other folks come in knowing about QMK first. Anyway, your video really helped me with understanding how to solder things up and then flash. But, after watching it, maybe I missed it, but I naively never realized I could press a keyboard key to allow flashing. I'll add a wee tip for other poor sods like me.