Skip to content

Commit effdf19

Browse files
committed
change stlink SWCLK from 9 to 8
Slows clk upload work on some dongles/rx that dont work on 9. 8 = 480 KHz 9 = 0.9 MHz
1 parent ef53827 commit effdf19

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/bootloader/erase_chip.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ST-LINK_CLI.exe -c SWD SWCLK=9 -ME
1+
ST-LINK_CLI.exe -c SWD SWCLK=8 -ME

src/bootloader/flashbootloader.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ST-LINK_CLI.exe -c SWD SWCLK=9 -P Bootloader.hex -RST
1+
ST-LINK_CLI.exe -c -ME SWD SWCLK=8 -P Bootloader.hex -RST

src/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ build_flags =
147147
-Wl,-TSTM32Linker.ld ;customer linker with memory offset for bootloader
148148
src_filter = ${common_env_data.src_filter} -<ESP32*.*> -<ESP8266*.*> -<WS281B*.*> -<tx_*.cpp>
149149
upload_protocol = custom
150-
upload_command = $PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe -c SWD SWCLK=9 -P $SOURCE 0x08008000 -RST
150+
upload_command = $PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe -c SWD SWCLK=8 -P $SOURCE 0x08008000 -RST
151151

152152
[env:R9M_RX_STM32F301_BetaflightPassthrough]
153153
platform = ${env:R9M_RX_STM32F301_STLINK.platform}

0 commit comments

Comments
 (0)