Bastardkb / adapter-blackpill

Other
14 stars 6 forks source link

Flashing uf2 file created with command line #17

Open lenschcode opened 2 years ago

lenschcode commented 2 years ago

Flashing a uf2 firmware with only the -bl uf2 flag in the command line causes the bootloader to overwrite itself.

Steps to reproduce:

  1. firmware with BOOTLOADER = stm32-dfu in rules.mk
  2. compile firmware with flag -bl uf2
  3. flash that uf2 file

That makes the blackpill unresponsive to any actions and reset.

Fix: Reflash the uf2 converter binary with dfu-util and change the rules.mk to BOOTLOADER = tinyuf2

Suggestion: Specify that only changing the flag when compiling will not work and setting BOOTLOADER to tinyuf2 is necessary.

KarlK90 commented 2 years ago

Thanks for reporting, with https://github.com/qmk/qmk_firmware/pull/16525 being merged this should no longer happen!