From 7646ff90375cba8e1733b4d1084fa74c83d46370 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 4 Jan 2024 11:59:41 +0800 Subject: [PATCH] README: Avoid deprecated OpenOCD ST-Link config The config file interface/stlink-v2-1.cfg is deprecated, and the warning message encourages the switch to interface/stlink.cfg. Do accordingly. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8cc022b..221263d 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Alternatively, you can install the Rust toolchain without Nix using rustup; see Connect SWDIO/SWCLK/RST/GND to a programmer such as ST-Link v2.1. Run OpenOCD: ```shell -openocd -f interface/stlink-v2-1.cfg -f target/stm32f4x.cfg +openocd -f interface/stlink.cfg -f target/stm32f4x.cfg ``` You may need to power up the programmer before powering the device. @@ -64,7 +64,7 @@ On a Windows machine install [st.com](https://st.com) DfuSe USB device firmware ### OpenOCD ```shell -openocd -f interface/stlink-v2-1.cfg -f target/stm32f4x.cfg -c "program target/thumbv7em-none-eabihf/release/thermostat verify reset;exit" +openocd -f interface/stlink.cfg -f target/stm32f4x.cfg -c "program target/thumbv7em-none-eabihf/release/thermostat verify reset;exit" ``` ## Network -- 2.47.0