zmkfirmware / zmk

ZMK Firmware Repository

Home Page:https://zmk.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

planck_rev6 &bootloader doesn't work

orbekk opened this issue · comments

The &bootloader key doesn't work with my planck_rev6. The keyboard appears to restart but boots back into ZMK when I press the &bootloader key.

It looks like qmj writes a magic value that triggers the planck bootloader. Perhaps ZMK needs to do this.

+1 &bootloader doesn't work on my planck_rev6 either

Quick summary of @petejohanson's comments on this on discord:

ZMK uses the Zephyr function sys_reboot (which in turn calls the device specific function sys_arch_reboot) for rebooting and resetting. The issue is that Zephyr does not currently have a stm32-specific implementation of sys_arch_reboot, causing it to fall back to a baseline version that does not support magic codes.

tl;dr: To fix the &bootloader for Planck (and other stm32 devices), one would need to add a stm32-specific implementation of sys_arch_reboot to Zephyr itself.