aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralstoepp <103357086+alstoepp@users.noreply.github.com>2022-04-13 17:22:04 +0200
committerGitHub <noreply@github.com>2022-04-13 11:22:04 -0400
commit44567879f668ec414a445b8fbbe50806ff6b6b10 (patch)
tree21dce6c1cf58678082c68a65f24e8dc71c2d7cbd
parent4c8d1b813c4382ca02fc18caa9dca0cd0d82fe75 (diff)
downloadkutter-44567879f668ec414a445b8fbbe50806ff6b6b10.tar.gz
kutter-44567879f668ec414a445b8fbbe50806ff6b6b10.tar.xz
kutter-44567879f668ec414a445b8fbbe50806ff6b6b10.zip
stm32: Add STM32F072 16KiB bootloader option (#5404)
Signed-off-by: Alexander Stöpperger <a.stoepperger@gmx-topmail.de>
-rw-r--r--docs/Bootloaders.md22
-rw-r--r--src/stm32/Kconfig2
2 files changed, 23 insertions, 1 deletions
diff --git a/docs/Bootloaders.md b/docs/Bootloaders.md
index 03ef4969..884cfbfd 100644
--- a/docs/Bootloaders.md
+++ b/docs/Bootloaders.md
@@ -385,6 +385,28 @@ not available, so it may be done by setting pin PA2 low if you flashed
the SKR Mini E3's "PIN" document. There is a ground pin next to PA2
which you can use to pull PA2 low.
+### STM32F103/STM32F072 with MSC bootloader
+
+The [MSC bootloader](https://github.com/Telekatz/MSC-stm32f103-bootloader) is a driverless bootloader capable of flashing over USB.
+
+It is possible to flash the bootloader via 3.3v serial using stm32flash as noted
+in the stm32duino section above, substituting the file name for the desired
+MSC bootloader binary (ie: MSCboot-Bluepill.bin for the blue pill).
+
+For STM32F072 boards it is also possible to flash the bootloader over USB (via DFU)
+with something like:
+
+```
+ dfu-util -d 0483:df11 -a 0 -R -D MSCboot-STM32F072.bin -s0x08000000:leave
+```
+
+This bootloader uses 8KiB or 16KiB of flash space, see description of the bootloader
+(the application must be compiled with with the corresponding starting address).
+
+The bootloader can be activated by pressing the reset button of the board twice.
+As soon as the bootloader is activated, the board appears as a USB flash drive
+onto which the klipper.bin file can be copied.
+
## STM32F4 micro-controllers (SKR Pro 1.1)
STM32F4 microcontrollers come equipped with a built-in system bootloader
diff --git a/src/stm32/Kconfig b/src/stm32/Kconfig
index a60f0f5c..c6df46b3 100644
--- a/src/stm32/Kconfig
+++ b/src/stm32/Kconfig
@@ -201,7 +201,7 @@ choice
config STM32_FLASH_START_800
bool "2KiB bootloader (HID Bootloader)" if MACH_STM32F103
config STM32_FLASH_START_4000
- bool "16KiB bootloader (HID Bootloader)" if MACH_STM32F207 || MACH_STM32F401 || MACH_STM32F4x5 || MACH_STM32F103
+ bool "16KiB bootloader (HID Bootloader)" if MACH_STM32F207 || MACH_STM32F401 || MACH_STM32F4x5 || MACH_STM32F103 || MACH_STM32F072
config STM32_FLASH_START_20000
bool "128KiB bootloader (SKR SE BX v2.0)" if MACH_STM32H743