aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/flashing.md2
-rw-r--r--platforms/chibios/bootloader.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/flashing.md b/docs/flashing.md
index 2e69f246a..f6b5ff78b 100644
--- a/docs/flashing.md
+++ b/docs/flashing.md
@@ -290,7 +290,7 @@ Compatible flashers:
290Flashing sequence: 290Flashing sequence:
291 291
2921. Enter the bootloader using any of the following methods: 2921. Enter the bootloader using any of the following methods:
293 * Tap the `RESET` keycode (this may only enter the MCU into a "secure" bootloader mode; see https://github.com/qmk/qmk_firmware/issues/6112) 293 * Tap the `RESET` keycode
294 * Press the `RESET` button on the PCB 294 * Press the `RESET` button on the PCB
2952. Wait for the OS to detect the device 2952. Wait for the OS to detect the device
2963. Flash a .bin file 2963. Flash a .bin file
diff --git a/platforms/chibios/bootloader.c b/platforms/chibios/bootloader.c
index 5cadadeee..58212948b 100644
--- a/platforms/chibios/bootloader.c
+++ b/platforms/chibios/bootloader.c
@@ -123,7 +123,7 @@ void enter_bootloader_mode_if_requested(void) { /* Jumping to bootloader is not
123# if defined(BOOTLOADER_KIIBOHD) 123# if defined(BOOTLOADER_KIIBOHD)
124/* Kiibohd Bootloader (MCHCK and Infinity KB) */ 124/* Kiibohd Bootloader (MCHCK and Infinity KB) */
125# define SCB_AIRCR_VECTKEY_WRITEMAGIC 0x05FA0000 125# define SCB_AIRCR_VECTKEY_WRITEMAGIC 0x05FA0000
126const uint8_t sys_reset_to_loader_magic[] = "\xff\x00\x7fRESET TO LOADER\x7f\x00\xff"; 126const uint8_t sys_reset_to_loader_magic[] = "\xff\x00\x7fRESET TO LOADER\x7f\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
127__attribute__((weak)) void bootloader_jump(void) { 127__attribute__((weak)) void bootloader_jump(void) {
128 void *volatile vbat = (void *)VBAT; 128 void *volatile vbat = (void *)VBAT;
129 __builtin_memcpy(vbat, (const void *)sys_reset_to_loader_magic, sizeof(sys_reset_to_loader_magic)); 129 __builtin_memcpy(vbat, (const void *)sys_reset_to_loader_magic, sizeof(sys_reset_to_loader_magic));