This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a3a34b6e hw/bsp: replace deprecated stlink-v2/v2-1.cfg with stlink.cfg
4a3a34b6e is described below

commit 4a3a34b6e284453316ee268b27803d5fc1c5e84c
Author: Wiktor Kwiatkowski <[email protected]>
AuthorDate: Thu Jul 17 14:32:35 2025 +0200

    hw/bsp: replace deprecated stlink-v2/v2-1.cfg with stlink.cfg
    
    Replaced all occurrences of stlink-v2.cfg and stlink-v2-1.cfg
    with stlink.cfg to eliminate warnings during openocd initialization.
    
    These files are no longer recommended.
    New stlink.cfg replaces them and automatically detects the ST-LINK
    version.
    
    Tested with OpenOCD version 0.12.
    
    Warning example:
    WARNING: interface/stlink-v2-1.cfg is deprecated, please switch
    to interface/stlink.cfg
---
 hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1.cfg     | 2 +-
 hw/bsp/ble400/ble400.cfg                     | 2 +-
 hw/bsp/bluepill/bluepill.cfg                 | 2 +-
 hw/bsp/nucleo-f746zg/nucleo-f746zg.cfg       | 2 +-
 hw/bsp/nucleo-f746zg/syscfg.yml              | 2 +-
 hw/bsp/nucleo-f767zi/nucleo-f767zi.cfg       | 2 +-
 hw/bsp/nucleo-f767zi/syscfg.yml              | 2 +-
 hw/bsp/nucleo-h723zg/nucleo-h723zg.cfg       | 2 +-
 hw/bsp/nucleo-h753zi/nucleo-h753zi.cfg       | 2 +-
 hw/bsp/stm32f4discovery/f4discovery.cfg      | 2 +-
 hw/bsp/stm32f7discovery/stm32f7discovery.cfg | 2 +-
 hw/bsp/stm32f7discovery/syscfg.yml           | 2 +-
 12 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1.cfg 
b/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1.cfg
index a9e0bd8e3..011539a9a 100644
--- a/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1.cfg
+++ b/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1.cfg
@@ -18,7 +18,7 @@
 #
 
 # https://www.st.com/en/evaluation-tools/b-l072z-lrwan1.html
-source [find interface/stlink-v2-1.cfg]
+source [find interface/stlink.cfg]
 
 transport select hla_swd
 
diff --git a/hw/bsp/ble400/ble400.cfg b/hw/bsp/ble400/ble400.cfg
index 336079fda..548c7e822 100644
--- a/hw/bsp/ble400/ble400.cfg
+++ b/hw/bsp/ble400/ble400.cfg
@@ -16,7 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-source [find interface/stlink-v2.cfg]
+source [find interface/stlink.cfg]
 transport select hla_swd
 set WORKAREASIZE 0x4000
 source [find target/nrf51.cfg]
diff --git a/hw/bsp/bluepill/bluepill.cfg b/hw/bsp/bluepill/bluepill.cfg
index 53df62b40..8426ec16f 100644
--- a/hw/bsp/bluepill/bluepill.cfg
+++ b/hw/bsp/bluepill/bluepill.cfg
@@ -15,6 +15,6 @@
 # specific language governing permissions and limitations
 # under the License.
 
-source [find interface/stlink-v2.cfg]
+source [find interface/stlink.cfg]
 
 source [find target/stm32f1x.cfg]
diff --git a/hw/bsp/nucleo-f746zg/nucleo-f746zg.cfg 
b/hw/bsp/nucleo-f746zg/nucleo-f746zg.cfg
index 4ce46f023..79c20bf4b 100644
--- a/hw/bsp/nucleo-f746zg/nucleo-f746zg.cfg
+++ b/hw/bsp/nucleo-f746zg/nucleo-f746zg.cfg
@@ -17,6 +17,6 @@
 # under the License.
 
 # New version of St-link
-source [find interface/stlink-v2-1.cfg]
+source [find interface/stlink.cfg]
 transport select hla_swd
 source [find target/stm32f7x.cfg]
diff --git a/hw/bsp/nucleo-f746zg/syscfg.yml b/hw/bsp/nucleo-f746zg/syscfg.yml
index 3f234be6f..cd2ceaf7b 100644
--- a/hw/bsp/nucleo-f746zg/syscfg.yml
+++ b/hw/bsp/nucleo-f746zg/syscfg.yml
@@ -66,6 +66,6 @@ syscfg.vals:
     TIMER_2_TIM: 'TIM11'
     MYNEWT_DOWNLOADER: openocd
     MYNEWT_DOWNLOADER_OPENOCD_CFG: nucleo-f746zg.cfg
-    MYNEWT_DOWNLOADER_OPENOCD_INTERFACE: interface/stlink-v2-1.cfg
+    MYNEWT_DOWNLOADER_OPENOCD_INTERFACE: interface/stlink.cfg
     MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
     JLINK_TARGET: STM32F746ZG
diff --git a/hw/bsp/nucleo-f767zi/nucleo-f767zi.cfg 
b/hw/bsp/nucleo-f767zi/nucleo-f767zi.cfg
index 4ce46f023..79c20bf4b 100644
--- a/hw/bsp/nucleo-f767zi/nucleo-f767zi.cfg
+++ b/hw/bsp/nucleo-f767zi/nucleo-f767zi.cfg
@@ -17,6 +17,6 @@
 # under the License.
 
 # New version of St-link
-source [find interface/stlink-v2-1.cfg]
+source [find interface/stlink.cfg]
 transport select hla_swd
 source [find target/stm32f7x.cfg]
diff --git a/hw/bsp/nucleo-f767zi/syscfg.yml b/hw/bsp/nucleo-f767zi/syscfg.yml
index a51d88f23..d7a85a986 100644
--- a/hw/bsp/nucleo-f767zi/syscfg.yml
+++ b/hw/bsp/nucleo-f767zi/syscfg.yml
@@ -74,7 +74,7 @@ syscfg.vals:
     TIMER_2_TIM: 'TIM11'
     MYNEWT_DOWNLOADER: openocd
     MYNEWT_DOWNLOADER_OPENOCD_CFG: nucleo-f767zi.cfg
-    MYNEWT_DOWNLOADER_OPENOCD_INTERFACE: interface/stlink-v2-1.cfg
+    MYNEWT_DOWNLOADER_OPENOCD_INTERFACE: interface/stlink.cfg
     MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
     PYOCD_TARGET: stm32f767zi
     JLINK_TARGET: STM32F767ZI
diff --git a/hw/bsp/nucleo-h723zg/nucleo-h723zg.cfg 
b/hw/bsp/nucleo-h723zg/nucleo-h723zg.cfg
index 4ce46f023..79c20bf4b 100644
--- a/hw/bsp/nucleo-h723zg/nucleo-h723zg.cfg
+++ b/hw/bsp/nucleo-h723zg/nucleo-h723zg.cfg
@@ -17,6 +17,6 @@
 # under the License.
 
 # New version of St-link
-source [find interface/stlink-v2-1.cfg]
+source [find interface/stlink.cfg]
 transport select hla_swd
 source [find target/stm32f7x.cfg]
diff --git a/hw/bsp/nucleo-h753zi/nucleo-h753zi.cfg 
b/hw/bsp/nucleo-h753zi/nucleo-h753zi.cfg
index 4ce46f023..79c20bf4b 100644
--- a/hw/bsp/nucleo-h753zi/nucleo-h753zi.cfg
+++ b/hw/bsp/nucleo-h753zi/nucleo-h753zi.cfg
@@ -17,6 +17,6 @@
 # under the License.
 
 # New version of St-link
-source [find interface/stlink-v2-1.cfg]
+source [find interface/stlink.cfg]
 transport select hla_swd
 source [find target/stm32f7x.cfg]
diff --git a/hw/bsp/stm32f4discovery/f4discovery.cfg 
b/hw/bsp/stm32f4discovery/f4discovery.cfg
index 694ab8d21..6c4ec3b10 100644
--- a/hw/bsp/stm32f4discovery/f4discovery.cfg
+++ b/hw/bsp/stm32f4discovery/f4discovery.cfg
@@ -17,6 +17,6 @@
 # under the License.
 
 # New version of St-link
-source [find interface/stlink-v2-1.cfg]
+source [find interface/stlink.cfg]
 transport select hla_swd
 source [find target/stm32f4x.cfg]
diff --git a/hw/bsp/stm32f7discovery/stm32f7discovery.cfg 
b/hw/bsp/stm32f7discovery/stm32f7discovery.cfg
index 4ad593ccd..3bcb343cb 100644
--- a/hw/bsp/stm32f7discovery/stm32f7discovery.cfg
+++ b/hw/bsp/stm32f7discovery/stm32f7discovery.cfg
@@ -17,6 +17,6 @@
 # under the License.
 
 # New version of St-link
-source [find interface/stlink-v2-1.cfg]
+source [find interface/stlink.cfg]
 transport select hla_swd
 source [find target/stm32f7x.cfg]
diff --git a/hw/bsp/stm32f7discovery/syscfg.yml 
b/hw/bsp/stm32f7discovery/syscfg.yml
index ddcb0b50d..72145f081 100644
--- a/hw/bsp/stm32f7discovery/syscfg.yml
+++ b/hw/bsp/stm32f7discovery/syscfg.yml
@@ -49,6 +49,6 @@ syscfg.vals:
     TIMER_2_TIM: 'TIM9'
     MYNEWT_DOWNLOADER: openocd
     MYNEWT_DOWNLOADER_OPENOCD_CFG: stm32f7discovery.cfg
-    MYNEWT_DOWNLOADER_OPENOCD_INTERFACE: interface/stlink-v2-1.cfg
+    MYNEWT_DOWNLOADER_OPENOCD_INTERFACE: interface/stlink.cfg
     MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
     JLINK_TARGET: STM32F746NG

Reply via email to