Skip to content

Commit 0b2f47f

Browse files
authored
Merge pull request #175 from KunYi/master
stm32f4xx: use --connect-under-reset for st-flash
2 parents 1a0b89b + 0cf48a3 commit 0b2f47f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

platform/stm32f4/build.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
chip-y =
5+
chip-y =
66

77
loader-chip-y = \
88
gpio.loader.o \
@@ -13,7 +13,7 @@ loader-chip-y = \
1313

1414
# FIXME: move to toplevel definitions
1515
platform-flash-command = \
16-
st-flash write $(1) 0x8000000 || \
16+
st-flash --connect-under-reset write $(1) 0x8000000 || \
1717
openocd -f interface/stlink-v2.cfg \
1818
-f target/stm32f4x_stlink.cfg \
1919
-c "init" \

platform/stm32f429/build.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ loader-chip-y = \
2121

2222
# FIXME: move to toplevel definitions
2323
platform-flash-command = \
24-
st-flash write $(1) 0x8000000 || \
24+
st-flash --connect-under-reset write $(1) 0x8000000 || \
2525
openocd -f interface/stlink-v2.cfg \
2626
-f target/stm32f4x_stlink.cfg \
2727
-c "init" \

0 commit comments

Comments
 (0)