diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-28 18:26:22 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-08-05 11:25:40 -0400 |
commit | ec3d865b517affd77678e5b1a45ef4691619726d (patch) | |
tree | 0e2bc36ed5c891cf8ea4548191474b39f8bbaeba /scripts | |
parent | 7efc53ff59111061908405dae889a38cc6e60dbb (diff) | |
download | kutter-ec3d865b517affd77678e5b1a45ef4691619726d.tar.gz kutter-ec3d865b517affd77678e5b1a45ef4691619726d.tar.xz kutter-ec3d865b517affd77678e5b1a45ef4691619726d.zip |
stm32f4: Add support for USB on stm32f103
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/flash_usb.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/flash_usb.py b/scripts/flash_usb.py index 9f1a7ea6..4fc72716 100755 --- a/scripts/flash_usb.py +++ b/scripts/flash_usb.py @@ -188,9 +188,21 @@ def flash_stm32f1(options, binfile): options.device, str(e), options.device)) sys.exit(-1) +STM32F4_HELP = """ +USB flash is not supported on the STM32F4! + +If attempting to flash via 3.3V serial, then use: + make serialflash FLASH_DEVICE=%s + +""" + +def flash_stm32f4(options, binfile): + sys.stderr.write(STM32F4_HELP % (options.device,)) + sys.exit(-1) + MCUTYPES = { 'atsam3': flash_atsam3, 'atsam4': flash_atsam4, 'atsamd': flash_atsamd, - 'lpc176x': flash_lpc176x, 'stm32f1': flash_stm32f1 + 'lpc176x': flash_lpc176x, 'stm32f1': flash_stm32f1, 'stm32f4': flash_stm32f4 } |