You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2026/10/14 05:00:15 UTC
(mynewt-core) branch master updated (348f52835 -> c816a49ce)
This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
from 348f52835 ci: Run labeler workflow on ubuntu-latest
new c175ea054 hw/bsp: Remove Windows cmd scripts
new dc6516660 hw/bsp: Switch STM32 BSPs to use common download script
new e6ce74b9e hw/bsp/nucleo-f303k8: Build applications as bootloader
new c816a49ce hw/bsp: Remove duplicated openocd interface for STM32F7 boards
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../ada_feather_stm32f405_download.sh | 67 ----------------------
hw/bsp/ada_feather_stm32f405/bsp.yml | 2 +-
hw/bsp/ada_feather_stm32f405/pkg.yml | 1 +
hw/bsp/ada_feather_stm32f405/syscfg.yml | 4 ++
hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_download.sh | 39 -------------
hw/bsp/b-l072z-lrwan1/bsp.yml | 2 +-
hw/bsp/b-l072z-lrwan1/pkg.yml | 1 +
hw/bsp/b-l072z-lrwan1/syscfg.yml | 4 ++
hw/bsp/bbc_microbit/bsp.yml | 2 -
hw/bsp/bbc_microbit/microbit_debug.cmd | 22 -------
hw/bsp/bbc_microbit/microbit_download.cmd | 22 -------
hw/bsp/ble400/ble400_debug.cmd | 22 -------
hw/bsp/ble400/ble400_download.cmd | 22 -------
hw/bsp/ble400/bsp.yml | 2 -
hw/bsp/bluepill/bluepill_download.sh | 41 -------------
hw/bsp/bmd200/bsp.yml | 2 -
hw/bsp/bmd200/nrf51dk_debug.cmd | 22 -------
hw/bsp/bmd200/nrf51dk_download.cmd | 22 -------
hw/bsp/calliope_mini/bsp.yml | 2 -
hw/bsp/calliope_mini/calliope_mini_debug.cmd | 22 -------
hw/bsp/calliope_mini/calliope_mini_download.cmd | 22 -------
hw/bsp/frdm-k64f/bsp.yml | 2 -
hw/bsp/frdm-k64f/frdm-k64_debug.cmd | 22 -------
hw/bsp/frdm-k64f/frdm-k64_download.cmd | 22 -------
hw/bsp/hifive1/bsp.yml | 2 -
hw/bsp/hifive1/hifive1_debug.cmd | 22 -------
hw/bsp/hifive1/hifive1_download.cmd | 22 -------
.../nordic_pca10028-16k_debug.cmd | 22 -------
hw/bsp/nordic_pca10028/nordic_pca10028_debug.cmd | 22 -------
hw/bsp/nrf51-arduino_101/bsp.yml | 2 -
hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.cmd | 22 -------
.../nrf51-arduino_101/nrf51dk-16kbram_download.cmd | 22 -------
hw/bsp/nrf51-blenano/bsp.yml | 2 -
hw/bsp/nrf51-blenano/nrf51dk_debug.cmd | 22 -------
hw/bsp/nrf51-blenano/nrf51dk_download.cmd | 22 -------
hw/bsp/nucleo-f030r8/bsp.yml | 12 ++--
hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh | 29 ----------
hw/bsp/nucleo-f030r8/pkg.yml | 1 +
hw/bsp/nucleo-f030r8/syscfg.yml | 9 +++
hw/bsp/nucleo-f072rb/bsp.yml | 12 ++--
hw/bsp/nucleo-f072rb/nucleo-f072rb_download.sh | 41 -------------
hw/bsp/nucleo-f072rb/pkg.yml | 1 +
hw/bsp/nucleo-f072rb/syscfg.yml | 9 +++
hw/bsp/nucleo-f303k8/bsp.yml | 10 ++--
hw/bsp/nucleo-f303k8/syscfg.yml | 5 ++
hw/bsp/nucleo-f401re/bsp.yml | 2 +-
hw/bsp/nucleo-f401re/nucleo-f401re_download.sh | 42 --------------
hw/bsp/nucleo-f401re/pkg.yml | 1 +
hw/bsp/nucleo-f401re/syscfg.yml | 5 ++
hw/bsp/nucleo-f411re/nucleo-f411re_download.sh | 40 -------------
hw/bsp/nucleo-f413zh/bsp.yml | 2 +-
hw/bsp/nucleo-f413zh/nucleo-f413zh_download.sh | 38 ------------
hw/bsp/nucleo-f413zh/pkg.yml | 1 +
hw/bsp/nucleo-f413zh/syscfg.yml | 4 ++
hw/bsp/nucleo-f439zi/bsp.yml | 2 +-
hw/bsp/nucleo-f439zi/nucleo-f439zi_download.sh | 38 ------------
hw/bsp/nucleo-f439zi/pkg.yml | 1 +
hw/bsp/nucleo-f439zi/syscfg.yml | 4 ++
hw/bsp/nucleo-f746zg/bsp.yml | 2 +-
hw/bsp/nucleo-f746zg/nucleo-f746zg_download.sh | 41 -------------
hw/bsp/nucleo-f746zg/syscfg.yml | 1 -
hw/bsp/nucleo-f767zi/syscfg.yml | 1 -
hw/bsp/olimex-p103/bsp.yml | 10 +++-
hw/bsp/olimex-p103/olimex_p103_download.sh | 43 --------------
hw/bsp/olimex-p103/pkg.yml | 1 +
hw/bsp/olimex-p103/syscfg.yml | 10 ++++
hw/bsp/olimex_stm32-e407_devboard/bsp.yml | 2 +-
.../olimex_stm32-e407_devboard_download.sh | 41 -------------
hw/bsp/olimex_stm32-e407_devboard/pkg.yml | 1 +
hw/bsp/olimex_stm32-e407_devboard/syscfg.yml | 6 ++
hw/bsp/rb-nano2/bsp.yml | 2 -
hw/bsp/stm32f411discovery/bsp.yml | 2 +-
hw/bsp/stm32f411discovery/pkg.yml | 1 +
.../stm32f411discovery_download.sh | 38 ------------
hw/bsp/stm32f411discovery/syscfg.yml | 4 ++
hw/bsp/stm32f429discovery/bsp.yml | 2 +-
hw/bsp/stm32f429discovery/pkg.yml | 1 +
.../stm32f429discovery_download.sh | 41 -------------
hw/bsp/stm32f429discovery/syscfg.yml | 5 ++
hw/bsp/stm32f4discovery/bsp.yml | 2 +-
hw/bsp/stm32f4discovery/pkg.yml | 1 +
.../stm32f4discovery/stm32f4discovery_download.sh | 41 -------------
hw/bsp/stm32f4discovery/syscfg.yml | 5 ++
hw/bsp/stm32f7discovery/bsp.yml | 2 +-
.../stm32f7discovery/stm32f7discovery_download.sh | 41 -------------
hw/bsp/stm32f7discovery/syscfg.yml | 1 -
hw/bsp/stm32l152discovery/bsp.yml | 4 +-
hw/bsp/stm32l152discovery/pkg.yml | 1 +
.../stm32l152discovery_debug.cmd | 22 -------
.../stm32l152discovery_download.cmd | 22 -------
.../stm32l152discovery_download.sh | 39 -------------
hw/bsp/stm32l152discovery/syscfg.yml | 4 ++
hw/bsp/usbmkw41z/bsp.yml | 2 -
hw/bsp/usbmkw41z/usbkw41z_debug.cmd | 22 -------
hw/bsp/usbmkw41z/usbkw41z_download.cmd | 22 -------
hw/bsp/vbluno51/bsp.yml | 2 -
hw/bsp/vbluno51/vbluno51_debug.cmd | 22 -------
hw/bsp/vbluno51/vbluno51_download.cmd | 22 -------
98 files changed, 131 insertions(+), 1283 deletions(-)
delete mode 100755 hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_download.sh
delete mode 100755 hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_download.sh
delete mode 100755 hw/bsp/bbc_microbit/microbit_debug.cmd
delete mode 100755 hw/bsp/bbc_microbit/microbit_download.cmd
delete mode 100755 hw/bsp/ble400/ble400_debug.cmd
delete mode 100755 hw/bsp/ble400/ble400_download.cmd
delete mode 100755 hw/bsp/bluepill/bluepill_download.sh
delete mode 100755 hw/bsp/bmd200/nrf51dk_debug.cmd
delete mode 100755 hw/bsp/bmd200/nrf51dk_download.cmd
delete mode 100755 hw/bsp/calliope_mini/calliope_mini_debug.cmd
delete mode 100755 hw/bsp/calliope_mini/calliope_mini_download.cmd
delete mode 100755 hw/bsp/frdm-k64f/frdm-k64_debug.cmd
delete mode 100755 hw/bsp/frdm-k64f/frdm-k64_download.cmd
delete mode 100644 hw/bsp/hifive1/hifive1_debug.cmd
delete mode 100644 hw/bsp/hifive1/hifive1_download.cmd
delete mode 100755 hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.cmd
delete mode 100755 hw/bsp/nordic_pca10028/nordic_pca10028_debug.cmd
delete mode 100755 hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.cmd
delete mode 100755 hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.cmd
delete mode 100755 hw/bsp/nrf51-blenano/nrf51dk_debug.cmd
delete mode 100755 hw/bsp/nrf51-blenano/nrf51dk_download.cmd
delete mode 100755 hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh
delete mode 100755 hw/bsp/nucleo-f072rb/nucleo-f072rb_download.sh
delete mode 100755 hw/bsp/nucleo-f401re/nucleo-f401re_download.sh
delete mode 100755 hw/bsp/nucleo-f411re/nucleo-f411re_download.sh
delete mode 100755 hw/bsp/nucleo-f413zh/nucleo-f413zh_download.sh
delete mode 100755 hw/bsp/nucleo-f439zi/nucleo-f439zi_download.sh
delete mode 100755 hw/bsp/nucleo-f746zg/nucleo-f746zg_download.sh
delete mode 100755 hw/bsp/olimex-p103/olimex_p103_download.sh
delete mode 100755 hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh
delete mode 100755 hw/bsp/stm32f411discovery/stm32f411discovery_download.sh
delete mode 100755 hw/bsp/stm32f429discovery/stm32f429discovery_download.sh
delete mode 100755 hw/bsp/stm32f4discovery/stm32f4discovery_download.sh
delete mode 100755 hw/bsp/stm32f7discovery/stm32f7discovery_download.sh
delete mode 100755 hw/bsp/stm32l152discovery/stm32l152discovery_debug.cmd
delete mode 100755 hw/bsp/stm32l152discovery/stm32l152discovery_download.cmd
delete mode 100755 hw/bsp/stm32l152discovery/stm32l152discovery_download.sh
delete mode 100755 hw/bsp/usbmkw41z/usbkw41z_debug.cmd
delete mode 100755 hw/bsp/usbmkw41z/usbkw41z_download.cmd
delete mode 100755 hw/bsp/vbluno51/vbluno51_debug.cmd
delete mode 100755 hw/bsp/vbluno51/vbluno51_download.cmd
(mynewt-core) 03/04: hw/bsp/nucleo-f303k8: Build applications as bootloader
Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit e6ce74b9e03bfd300e2db1a0c7acbcf5c09e7175
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue Oct 13 21:51:34 2026 +0200
hw/bsp/nucleo-f303k8: Build applications as bootloader
nucleo-f303k8 has no space for bootloader and application was placed
in FLASH_AREA_IMAGE_0 at the beginning of flash. Application was
linked with image header gap so vector table was at 0x08000020 and
common download script loaded .img file to 0x08000000, resulting in
image that could not start.
Define BOOT_LOADER (same as weact_g431cb) and place code in
FLASH_AREA_BOOTLOADER, so application is linked at the beginning of
flash and download script loads .elf.bin file there.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Jerzy Kasenberg <je...@codecoup.pl>
---
hw/bsp/nucleo-f303k8/bsp.yml | 10 ++++++----
hw/bsp/nucleo-f303k8/syscfg.yml | 5 +++++
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/hw/bsp/nucleo-f303k8/bsp.yml b/hw/bsp/nucleo-f303k8/bsp.yml
index e910ac0d6..831aae6d1 100644
--- a/hw/bsp/nucleo-f303k8/bsp.yml
+++ b/hw/bsp/nucleo-f303k8/bsp.yml
@@ -29,14 +29,16 @@ bsp.debugscript: "hw/bsp/nucleo-f303k8/nucleo-f303k8_debug.sh"
bsp.flash_map:
areas:
# System areas.
+ # Only one flash area for code
FLASH_AREA_BOOTLOADER:
- device: 0
- offset: 0x08100000
- size: 0kB
- FLASH_AREA_IMAGE_0:
device: 0
offset: 0x08000000
size: 64kB
+ # Empty flash area to allow build
+ FLASH_AREA_IMAGE_0:
+ device: 0
+ offset: 0x08100000
+ size: 0kB
FLASH_AREA_IMAGE_1:
device: 0
offset: 0x08200000
diff --git a/hw/bsp/nucleo-f303k8/syscfg.yml b/hw/bsp/nucleo-f303k8/syscfg.yml
index e2e236d22..e46cba072 100644
--- a/hw/bsp/nucleo-f303k8/syscfg.yml
+++ b/hw/bsp/nucleo-f303k8/syscfg.yml
@@ -17,6 +17,11 @@
# under the License.
#
+syscfg.defs:
+ BOOT_LOADER:
+ description: 'Build everything as bootloader'
+ value: 1
+
syscfg.vals:
STM32_FLASH_SIZE_KB: 64
MCU_RAM_START: 0x20000000
(mynewt-core) 01/04: hw/bsp: Remove Windows cmd scripts
Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit c175ea05457eb7562875c1215e5d53a87b2bcaf3
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue Oct 13 21:21:52 2026 +0200
hw/bsp: Remove Windows cmd scripts
Several BSPs still provided Windows specific download and debug cmd
scripts selected with bsp.downloadscript.WINDOWS.OVERWRITE and
bsp.debugscript.WINDOWS.OVERWRITE. Those scripts are not maintained,
rb-nano2 even referenced cmd files that were not present in the
repository, and nordic_pca10028 BSPs had cmd files that were not
referenced at all.
Remove WINDOWS.OVERWRITE settings from bsp.yml files and all cmd
scripts so shell scripts are used on every host.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Jerzy Kasenberg <je...@codecoup.pl>
---
hw/bsp/bbc_microbit/bsp.yml | 2 --
hw/bsp/bbc_microbit/microbit_debug.cmd | 22 ----------------------
hw/bsp/bbc_microbit/microbit_download.cmd | 22 ----------------------
hw/bsp/ble400/ble400_debug.cmd | 22 ----------------------
hw/bsp/ble400/ble400_download.cmd | 22 ----------------------
hw/bsp/ble400/bsp.yml | 2 --
hw/bsp/bmd200/bsp.yml | 2 --
hw/bsp/bmd200/nrf51dk_debug.cmd | 22 ----------------------
hw/bsp/bmd200/nrf51dk_download.cmd | 22 ----------------------
hw/bsp/calliope_mini/bsp.yml | 2 --
hw/bsp/calliope_mini/calliope_mini_debug.cmd | 22 ----------------------
hw/bsp/calliope_mini/calliope_mini_download.cmd | 22 ----------------------
hw/bsp/frdm-k64f/bsp.yml | 2 --
hw/bsp/frdm-k64f/frdm-k64_debug.cmd | 22 ----------------------
hw/bsp/frdm-k64f/frdm-k64_download.cmd | 22 ----------------------
hw/bsp/hifive1/bsp.yml | 2 --
hw/bsp/hifive1/hifive1_debug.cmd | 22 ----------------------
hw/bsp/hifive1/hifive1_download.cmd | 22 ----------------------
.../nordic_pca10028-16k_debug.cmd | 22 ----------------------
hw/bsp/nordic_pca10028/nordic_pca10028_debug.cmd | 22 ----------------------
hw/bsp/nrf51-arduino_101/bsp.yml | 2 --
hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.cmd | 22 ----------------------
.../nrf51-arduino_101/nrf51dk-16kbram_download.cmd | 22 ----------------------
hw/bsp/nrf51-blenano/bsp.yml | 2 --
hw/bsp/nrf51-blenano/nrf51dk_debug.cmd | 22 ----------------------
hw/bsp/nrf51-blenano/nrf51dk_download.cmd | 22 ----------------------
hw/bsp/rb-nano2/bsp.yml | 2 --
hw/bsp/stm32l152discovery/bsp.yml | 2 --
.../stm32l152discovery_debug.cmd | 22 ----------------------
.../stm32l152discovery_download.cmd | 22 ----------------------
hw/bsp/usbmkw41z/bsp.yml | 2 --
hw/bsp/usbmkw41z/usbkw41z_debug.cmd | 22 ----------------------
hw/bsp/usbmkw41z/usbkw41z_download.cmd | 22 ----------------------
hw/bsp/vbluno51/bsp.yml | 2 --
hw/bsp/vbluno51/vbluno51_debug.cmd | 22 ----------------------
hw/bsp/vbluno51/vbluno51_download.cmd | 22 ----------------------
36 files changed, 552 deletions(-)
diff --git a/hw/bsp/bbc_microbit/bsp.yml b/hw/bsp/bbc_microbit/bsp.yml
index d065ff82b..c763c5ce4 100644
--- a/hw/bsp/bbc_microbit/bsp.yml
+++ b/hw/bsp/bbc_microbit/bsp.yml
@@ -31,8 +31,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
bsp.part2linkerscript: "hw/bsp/bbc_microbit/split-microbit.ld"
bsp.downloadscript: hw/bsp/bbc_microbit/microbit_download.sh
bsp.debugscript: hw/bsp/bbc_microbit/microbit_debug.sh
-bsp.downloadscript.WINDOWS.OVERWRITE: hw/bsp/bbc_microbit/microbit_download.cmd
-bsp.debugscript.WINDOWS.OVERWRITE: hw/bsp/bbc_microbit/microbit_debug.cmd
bsp.flash_map:
areas:
diff --git a/hw/bsp/bbc_microbit/microbit_debug.cmd b/hw/bsp/bbc_microbit/microbit_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/bbc_microbit/microbit_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/bbc_microbit/microbit_download.cmd b/hw/bsp/bbc_microbit/microbit_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/bbc_microbit/microbit_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/ble400/ble400_debug.cmd b/hw/bsp/ble400/ble400_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/ble400/ble400_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/ble400/ble400_download.cmd b/hw/bsp/ble400/ble400_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/ble400/ble400_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/ble400/bsp.yml b/hw/bsp/ble400/bsp.yml
index 7dcae6ad0..4a7d929da 100644
--- a/hw/bsp/ble400/bsp.yml
+++ b/hw/bsp/ble400/bsp.yml
@@ -31,8 +31,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
bsp.part2linkerscript: "hw/bsp/ble400/split-ble400.ld"
bsp.downloadscript: "hw/bsp/ble400/ble400_download.sh"
bsp.debugscript: "hw/bsp/ble400/ble400_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/ble400/ble400_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/ble400/ble400_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/bmd200/bsp.yml b/hw/bsp/bmd200/bsp.yml
index a0301c571..4eeabf065 100644
--- a/hw/bsp/bmd200/bsp.yml
+++ b/hw/bsp/bmd200/bsp.yml
@@ -31,8 +31,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
bsp.part2linkerscript: "hw/bsp/bmd200/split-nrf51dk.ld"
bsp.downloadscript: "hw/bsp/bmd200/nrf51dk_download.sh"
bsp.debugscript: "hw/bsp/bmd200/nrf51dk_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/bmd200/nrf51dk_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/bmd200/nrf51dk_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/bmd200/nrf51dk_debug.cmd b/hw/bsp/bmd200/nrf51dk_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/bmd200/nrf51dk_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/bmd200/nrf51dk_download.cmd b/hw/bsp/bmd200/nrf51dk_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/bmd200/nrf51dk_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/calliope_mini/bsp.yml b/hw/bsp/calliope_mini/bsp.yml
index e8300afbe..2042d109b 100644
--- a/hw/bsp/calliope_mini/bsp.yml
+++ b/hw/bsp/calliope_mini/bsp.yml
@@ -31,8 +31,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
bsp.part2linkerscript: hw/bsp/calliope_mini/split-calliope_mini.ld
bsp.downloadscript: hw/bsp/calliope_mini/calliope_mini_download.sh
bsp.debugscript: hw/bsp/calliope_mini/calliope_mini_debug.sh
-bsp.downloadscript.WINDOWS.OVERWRITE: hw/bsp/calliope_mini/calliope_mini_download.cmd
-bsp.debugscript.WINDOWS.OVERWRITE: hw/bsp/calliope_mini/calliope_mini_debug.cmd
bsp.flash_map:
areas:
diff --git a/hw/bsp/calliope_mini/calliope_mini_debug.cmd b/hw/bsp/calliope_mini/calliope_mini_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/calliope_mini/calliope_mini_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/calliope_mini/calliope_mini_download.cmd b/hw/bsp/calliope_mini/calliope_mini_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/calliope_mini/calliope_mini_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/frdm-k64f/bsp.yml b/hw/bsp/frdm-k64f/bsp.yml
index 992919ad0..30fac6879 100644
--- a/hw/bsp/frdm-k64f/bsp.yml
+++ b/hw/bsp/frdm-k64f/bsp.yml
@@ -26,8 +26,6 @@ bsp.linkerscript: "hw/bsp/frdm-k64f/MK64FN1M0xxx12_flash.ld"
bsp.linkerscript.BOOT_LOADER.OVERWRITE: "hw/bsp/frdm-k64f/boot-MK64FN1M0xxx12_flash.ld"
bsp.downloadscript: "hw/bsp/frdm-k64f/frdm-k64_download.sh"
bsp.debugscript: "hw/bsp/frdm-k64f/frdm-k64_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/frdm-k64f/frdm-k64_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/frdm-k64f/frdm-k64_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/frdm-k64f/frdm-k64_debug.cmd b/hw/bsp/frdm-k64f/frdm-k64_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/frdm-k64f/frdm-k64_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/frdm-k64f/frdm-k64_download.cmd b/hw/bsp/frdm-k64f/frdm-k64_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/frdm-k64f/frdm-k64_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/hifive1/bsp.yml b/hw/bsp/hifive1/bsp.yml
index 46b480594..37c903b25 100644
--- a/hw/bsp/hifive1/bsp.yml
+++ b/hw/bsp/hifive1/bsp.yml
@@ -30,8 +30,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
- "hw/bsp/hifive1/hifive1.ld"
bsp.downloadscript: "hw/bsp/hifive1/hifive1_download.sh"
bsp.debugscript: "hw/bsp/hifive1/hifive1_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/hifive1/hifive1_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/hifive1/hifive1_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/hifive1/hifive1_debug.cmd b/hw/bsp/hifive1/hifive1_debug.cmd
deleted file mode 100644
index 870128e69..000000000
--- a/hw/bsp/hifive1/hifive1_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/hifive1/hifive1_download.cmd b/hw/bsp/hifive1/hifive1_download.cmd
deleted file mode 100644
index 870128e69..000000000
--- a/hw/bsp/hifive1/hifive1_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.cmd b/hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/nordic_pca10028/nordic_pca10028_debug.cmd b/hw/bsp/nordic_pca10028/nordic_pca10028_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nordic_pca10028/nordic_pca10028_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/nrf51-arduino_101/bsp.yml b/hw/bsp/nrf51-arduino_101/bsp.yml
index 76b175c45..43bfb563f 100644
--- a/hw/bsp/nrf51-arduino_101/bsp.yml
+++ b/hw/bsp/nrf51-arduino_101/bsp.yml
@@ -30,8 +30,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
- "@apache-mynewt-core/hw/mcu/nordic/nrf51xxx/nrf51.ld"
bsp.downloadscript: "hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.sh"
bsp.debugscript: "hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.cmd b/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.cmd b/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/nrf51-blenano/bsp.yml b/hw/bsp/nrf51-blenano/bsp.yml
index f1d27e356..58ea6e418 100644
--- a/hw/bsp/nrf51-blenano/bsp.yml
+++ b/hw/bsp/nrf51-blenano/bsp.yml
@@ -31,8 +31,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
bsp.part2linkerscript: "hw/bsp/nrf51-blenano/split-nrf51dk.ld"
bsp.downloadscript: "hw/bsp/nrf51-blenano/nrf51dk_download.sh"
bsp.debugscript: "hw/bsp/nrf51-blenano/nrf51dk_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/nrf51-blenano/nrf51dk_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/nrf51-blenano/nrf51dk_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/nrf51-blenano/nrf51dk_debug.cmd b/hw/bsp/nrf51-blenano/nrf51dk_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nrf51-blenano/nrf51dk_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/nrf51-blenano/nrf51dk_download.cmd b/hw/bsp/nrf51-blenano/nrf51dk_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nrf51-blenano/nrf51dk_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/rb-nano2/bsp.yml b/hw/bsp/rb-nano2/bsp.yml
index 7de94a4f8..67a07e19f 100644
--- a/hw/bsp/rb-nano2/bsp.yml
+++ b/hw/bsp/rb-nano2/bsp.yml
@@ -26,8 +26,6 @@ bsp.linkerscript: autogenerated
bsp.part2linkerscript: "hw/bsp/rb-nano2/split-rb-nano2.ld"
bsp.downloadscript: "hw/bsp/rb-nano2/rb-nano2_download.sh"
bsp.debugscript: "hw/bsp/rb-nano2/rb-nano2_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/rb-nano2/rb-nano2_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/rb-nano2/rb-nano2_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/stm32l152discovery/bsp.yml b/hw/bsp/stm32l152discovery/bsp.yml
index da656e54b..adc2531ae 100644
--- a/hw/bsp/stm32l152discovery/bsp.yml
+++ b/hw/bsp/stm32l152discovery/bsp.yml
@@ -30,8 +30,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
- "@apache-mynewt-core/hw/mcu/stm/stm32l1xx/stm32l152.ld"
bsp.downloadscript: "hw/bsp/stm32l152discovery/stm32l152discovery_download.sh"
bsp.debugscript: "hw/bsp/stm32l152discovery/stm32l152discovery_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/stm32l152discovery/stm32l152discovery_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/stm32l152discovery/stm32l152discovery_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/stm32l152discovery/stm32l152discovery_debug.cmd b/hw/bsp/stm32l152discovery/stm32l152discovery_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/stm32l152discovery/stm32l152discovery_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/stm32l152discovery/stm32l152discovery_download.cmd b/hw/bsp/stm32l152discovery/stm32l152discovery_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/stm32l152discovery/stm32l152discovery_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/usbmkw41z/bsp.yml b/hw/bsp/usbmkw41z/bsp.yml
index 2eaaf8b4b..f7ec4a6c8 100644
--- a/hw/bsp/usbmkw41z/bsp.yml
+++ b/hw/bsp/usbmkw41z/bsp.yml
@@ -29,8 +29,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
bsp.part2linkerscript: "hw/bsp/usbmkw41z/split-usbkw41z.ld"
bsp.downloadscript: "hw/bsp/usbmkw41z/usbkw41z_download.sh"
bsp.debugscript: "hw/bsp/usbmkw41z/usbkw41z_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/usbmkw41z/usbkw41z_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/usbmkw41z/usbkw41z_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/usbmkw41z/usbkw41z_debug.cmd b/hw/bsp/usbmkw41z/usbkw41z_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/usbmkw41z/usbkw41z_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/usbmkw41z/usbkw41z_download.cmd b/hw/bsp/usbmkw41z/usbkw41z_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/usbmkw41z/usbkw41z_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/vbluno51/bsp.yml b/hw/bsp/vbluno51/bsp.yml
index f91f9fded..5169288e6 100644
--- a/hw/bsp/vbluno51/bsp.yml
+++ b/hw/bsp/vbluno51/bsp.yml
@@ -31,8 +31,6 @@ bsp.linkerscript.BOOT_LOADER.OVERWRITE:
bsp.part2linkerscript: "hw/bsp/vbluno51/split-vbluno51.ld"
bsp.downloadscript: "hw/bsp/vbluno51/vbluno51_download.sh"
bsp.debugscript: "hw/bsp/vbluno51/vbluno51_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/vbluno51/vbluno51_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/vbluno51/vbluno51_debug.cmd"
bsp.flash_map:
areas:
diff --git a/hw/bsp/vbluno51/vbluno51_debug.cmd b/hw/bsp/vbluno51/vbluno51_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/vbluno51/vbluno51_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/vbluno51/vbluno51_download.cmd b/hw/bsp/vbluno51/vbluno51_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/vbluno51/vbluno51_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-
-@bash "%~dp0%~n0.sh"
(mynewt-core) 04/04: hw/bsp: Remove duplicated openocd interface for STM32F7 boards
Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit c816a49cea49017d61838fc2f3efb5f76ff54994
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue Oct 13 22:04:51 2026 +0200
hw/bsp: Remove duplicated openocd interface for STM32F7 boards
nucleo-f746zg, nucleo-f767zi and stm32f7discovery set
MYNEWT_DOWNLOADER_OPENOCD_INTERFACE to interface/stlink.cfg while
openocd configuration file from BSP that is passed with
MYNEWT_DOWNLOADER_OPENOCD_CFG already sources it. Interface was
specified twice and openocd reported error on each download:
Error: already specified hl_layout stlink
Remove MYNEWT_DOWNLOADER_OPENOCD_INTERFACE from those BSPs.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Jerzy Kasenberg <je...@codecoup.pl>
---
hw/bsp/nucleo-f746zg/syscfg.yml | 1 -
hw/bsp/nucleo-f767zi/syscfg.yml | 1 -
hw/bsp/stm32f7discovery/syscfg.yml | 1 -
3 files changed, 3 deletions(-)
diff --git a/hw/bsp/nucleo-f746zg/syscfg.yml b/hw/bsp/nucleo-f746zg/syscfg.yml
index a0f30fb7a..37c043add 100644
--- a/hw/bsp/nucleo-f746zg/syscfg.yml
+++ b/hw/bsp/nucleo-f746zg/syscfg.yml
@@ -62,7 +62,6 @@ syscfg.vals:
TIMER_2_TIM: 'TIM11'
MYNEWT_DOWNLOADER: openocd
MYNEWT_DOWNLOADER_OPENOCD_CFG: nucleo-f746zg.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/syscfg.yml b/hw/bsp/nucleo-f767zi/syscfg.yml
index b0cc9f9b3..ff43a4730 100644
--- a/hw/bsp/nucleo-f767zi/syscfg.yml
+++ b/hw/bsp/nucleo-f767zi/syscfg.yml
@@ -70,7 +70,6 @@ syscfg.vals:
TIMER_2_TIM: 'TIM11'
MYNEWT_DOWNLOADER: openocd
MYNEWT_DOWNLOADER_OPENOCD_CFG: nucleo-f767zi.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/stm32f7discovery/syscfg.yml b/hw/bsp/stm32f7discovery/syscfg.yml
index ad06ade9d..1f62c96d6 100644
--- a/hw/bsp/stm32f7discovery/syscfg.yml
+++ b/hw/bsp/stm32f7discovery/syscfg.yml
@@ -49,7 +49,6 @@ syscfg.vals:
I2C_3_PIN_SDA: 'MCU_GPIO_PORTH(8)'
MYNEWT_DOWNLOADER: openocd
MYNEWT_DOWNLOADER_OPENOCD_CFG: stm32f7discovery.cfg
- MYNEWT_DOWNLOADER_OPENOCD_INTERFACE: interface/stlink.cfg
MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
JLINK_TARGET: STM32F746NG
(mynewt-core) 02/04: hw/bsp: Switch STM32 BSPs to use common download script
Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit dc6516660b951d64c8f28e81cf6a3671dcfc915a
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue Oct 13 21:24:49 2026 +0200
hw/bsp: Switch STM32 BSPs to use common download script
Most STM32 BSPs already use hw/scripts/download.sh where download tool
is selected with MYNEWT_DOWNLOADER syscfg value. Remaining BSPs still
had their own download scripts. Switch them to common script, keeping
tool that was used so far:
- stflash: ada_feather_stm32f405, b-l072z-lrwan1, nucleo-f030r8,
nucleo-f072rb, nucleo-f413zh, nucleo-f439zi, stm32f411discovery,
stm32l152discovery
- openocd: nucleo-f401re, nucleo-f746zg, olimex-p103,
olimex_stm32-e407_devboard, stm32f429discovery, stm32f4discovery,
stm32f7discovery
JLINK_TARGET is also added so jlink can be selected in target.
nucleo-f030r8, nucleo-f072rb and olimex-p103 do not use bootloader and
their download scripts always loaded .elf.bin. Those BSPs now define
BOOT_LOADER (same as weact_g431cb) and place code in
FLASH_AREA_BOOTLOADER, so newt passes BOOT_LOADER and bootloader
offset to download script.
Unused download scripts left in nucleo-f411re and bluepill are
removed as well.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Jerzy Kasenberg <je...@codecoup.pl>
---
.../ada_feather_stm32f405_download.sh | 67 ----------------------
hw/bsp/ada_feather_stm32f405/bsp.yml | 2 +-
hw/bsp/ada_feather_stm32f405/pkg.yml | 1 +
hw/bsp/ada_feather_stm32f405/syscfg.yml | 4 ++
hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_download.sh | 39 -------------
hw/bsp/b-l072z-lrwan1/bsp.yml | 2 +-
hw/bsp/b-l072z-lrwan1/pkg.yml | 1 +
hw/bsp/b-l072z-lrwan1/syscfg.yml | 4 ++
hw/bsp/bluepill/bluepill_download.sh | 41 -------------
hw/bsp/nucleo-f030r8/bsp.yml | 12 ++--
hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh | 29 ----------
hw/bsp/nucleo-f030r8/pkg.yml | 1 +
hw/bsp/nucleo-f030r8/syscfg.yml | 9 +++
hw/bsp/nucleo-f072rb/bsp.yml | 12 ++--
hw/bsp/nucleo-f072rb/nucleo-f072rb_download.sh | 41 -------------
hw/bsp/nucleo-f072rb/pkg.yml | 1 +
hw/bsp/nucleo-f072rb/syscfg.yml | 9 +++
hw/bsp/nucleo-f401re/bsp.yml | 2 +-
hw/bsp/nucleo-f401re/nucleo-f401re_download.sh | 42 --------------
hw/bsp/nucleo-f401re/pkg.yml | 1 +
hw/bsp/nucleo-f401re/syscfg.yml | 5 ++
hw/bsp/nucleo-f411re/nucleo-f411re_download.sh | 40 -------------
hw/bsp/nucleo-f413zh/bsp.yml | 2 +-
hw/bsp/nucleo-f413zh/nucleo-f413zh_download.sh | 38 ------------
hw/bsp/nucleo-f413zh/pkg.yml | 1 +
hw/bsp/nucleo-f413zh/syscfg.yml | 4 ++
hw/bsp/nucleo-f439zi/bsp.yml | 2 +-
hw/bsp/nucleo-f439zi/nucleo-f439zi_download.sh | 38 ------------
hw/bsp/nucleo-f439zi/pkg.yml | 1 +
hw/bsp/nucleo-f439zi/syscfg.yml | 4 ++
hw/bsp/nucleo-f746zg/bsp.yml | 2 +-
hw/bsp/nucleo-f746zg/nucleo-f746zg_download.sh | 41 -------------
hw/bsp/olimex-p103/bsp.yml | 10 +++-
hw/bsp/olimex-p103/olimex_p103_download.sh | 43 --------------
hw/bsp/olimex-p103/pkg.yml | 1 +
hw/bsp/olimex-p103/syscfg.yml | 10 ++++
hw/bsp/olimex_stm32-e407_devboard/bsp.yml | 2 +-
.../olimex_stm32-e407_devboard_download.sh | 41 -------------
hw/bsp/olimex_stm32-e407_devboard/pkg.yml | 1 +
hw/bsp/olimex_stm32-e407_devboard/syscfg.yml | 6 ++
hw/bsp/stm32f411discovery/bsp.yml | 2 +-
hw/bsp/stm32f411discovery/pkg.yml | 1 +
.../stm32f411discovery_download.sh | 38 ------------
hw/bsp/stm32f411discovery/syscfg.yml | 4 ++
hw/bsp/stm32f429discovery/bsp.yml | 2 +-
hw/bsp/stm32f429discovery/pkg.yml | 1 +
.../stm32f429discovery_download.sh | 41 -------------
hw/bsp/stm32f429discovery/syscfg.yml | 5 ++
hw/bsp/stm32f4discovery/bsp.yml | 2 +-
hw/bsp/stm32f4discovery/pkg.yml | 1 +
.../stm32f4discovery/stm32f4discovery_download.sh | 41 -------------
hw/bsp/stm32f4discovery/syscfg.yml | 5 ++
hw/bsp/stm32f7discovery/bsp.yml | 2 +-
.../stm32f7discovery/stm32f7discovery_download.sh | 41 -------------
hw/bsp/stm32l152discovery/bsp.yml | 2 +-
hw/bsp/stm32l152discovery/pkg.yml | 1 +
.../stm32l152discovery_download.sh | 39 -------------
hw/bsp/stm32l152discovery/syscfg.yml | 4 ++
58 files changed, 120 insertions(+), 724 deletions(-)
diff --git a/hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_download.sh b/hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_download.sh
deleted file mode 100755
index f29c7287b..000000000
--- a/hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_download.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/ada_feather_stm32f405/bsp.yml b/hw/bsp/ada_feather_stm32f405/bsp.yml
index e54681ac6..5bfb79012 100644
--- a/hw/bsp/ada_feather_stm32f405/bsp.yml
+++ b/hw/bsp/ada_feather_stm32f405/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "Adafruit Industries"
bsp.arch: cortex_m4
bsp.compiler: compiler/arm-none-eabi-m4
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/ada_feather_stm32f405/pkg.yml b/hw/bsp/ada_feather_stm32f405/pkg.yml
index c2f1d75dd..582c17006 100644
--- a/hw/bsp/ada_feather_stm32f405/pkg.yml
+++ b/hw/bsp/ada_feather_stm32f405/pkg.yml
@@ -39,3 +39,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/ada_feather_stm32f405/syscfg.yml b/hw/bsp/ada_feather_stm32f405/syscfg.yml
index 5c383ddfe..6f942a04d 100644
--- a/hw/bsp/ada_feather_stm32f405/syscfg.yml
+++ b/hw/bsp/ada_feather_stm32f405/syscfg.yml
@@ -17,6 +17,10 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: stflash
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F405RG
+
STM32_FLASH_SIZE_KB: 1024
STM32_FLASH_NUM_AREAS: 12
MCU_RAM_START: 0x20000000
diff --git a/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_download.sh b/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_download.sh
deleted file mode 100755
index 5d6d649ab..000000000
--- a/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_download.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/b-l072z-lrwan1/bsp.yml b/hw/bsp/b-l072z-lrwan1/bsp.yml
index 01c10546c..3e74ed5f6 100644
--- a/hw/bsp/b-l072z-lrwan1/bsp.yml
+++ b/hw/bsp/b-l072z-lrwan1/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m0
bsp.compiler: compiler/arm-none-eabi-m0
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/b-l072z-lrwan1/pkg.yml b/hw/bsp/b-l072z-lrwan1/pkg.yml
index a8d42efdb..a4bb4db80 100644
--- a/hw/bsp/b-l072z-lrwan1/pkg.yml
+++ b/hw/bsp/b-l072z-lrwan1/pkg.yml
@@ -33,6 +33,7 @@ pkg.cflags:
pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32l0xx"
- "@apache-mynewt-core/libc"
+ - "@apache-mynewt-core/hw/scripts"
pkg.deps.LORA_NODE:
- "@apache-mynewt-core/hw/drivers/lora/sx1276"
diff --git a/hw/bsp/b-l072z-lrwan1/syscfg.yml b/hw/bsp/b-l072z-lrwan1/syscfg.yml
index eeb72c066..27aeafce6 100644
--- a/hw/bsp/b-l072z-lrwan1/syscfg.yml
+++ b/hw/bsp/b-l072z-lrwan1/syscfg.yml
@@ -18,6 +18,10 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: stflash
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32L072CZ
+
STM32_FLASH_SIZE_KB: 192
MCU_RAM_START: 0x20000000
MCU_RAM_SIZE: 20K
diff --git a/hw/bsp/bluepill/bluepill_download.sh b/hw/bsp/bluepill/bluepill_download.sh
deleted file mode 100755
index 3ebd41911..000000000
--- a/hw/bsp/bluepill/bluepill_download.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
-
-CFG="-s $BSP_PATH -f bluepill.cfg"
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-openocd_load
-openocd_reset_run
diff --git a/hw/bsp/nucleo-f030r8/bsp.yml b/hw/bsp/nucleo-f030r8/bsp.yml
index 498cf172c..467a0e973 100644
--- a/hw/bsp/nucleo-f030r8/bsp.yml
+++ b/hw/bsp/nucleo-f030r8/bsp.yml
@@ -23,20 +23,22 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m0
bsp.compiler: compiler/arm-none-eabi-m0
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh"
bsp.flash_map:
areas:
# System areas.
+ # Only one flash area for code
FLASH_AREA_BOOTLOADER:
- device: 0
- offset: 0x08100000
- size: 0kB
- FLASH_AREA_IMAGE_0:
device: 0
offset: 0x08000000
size: 64kB
+ # Empty flash area to allow build
+ FLASH_AREA_IMAGE_0:
+ device: 0
+ offset: 0x08100000
+ size: 0kB
FLASH_AREA_IMAGE_1:
device: 0
offset: 0x08200000
diff --git a/hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh b/hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh
deleted file mode 100755
index 4063ed823..000000000
--- a/hw/bsp/nucleo-f030r8/nucleo-f030r8_download.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-BOOT_LOADER=1
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/nucleo-f030r8/pkg.yml b/hw/bsp/nucleo-f030r8/pkg.yml
index 2db9b08ef..14c129b02 100644
--- a/hw/bsp/nucleo-f030r8/pkg.yml
+++ b/hw/bsp/nucleo-f030r8/pkg.yml
@@ -37,3 +37,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f0xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-f030r8/syscfg.yml b/hw/bsp/nucleo-f030r8/syscfg.yml
index 81a19c0cd..cfc655545 100644
--- a/hw/bsp/nucleo-f030r8/syscfg.yml
+++ b/hw/bsp/nucleo-f030r8/syscfg.yml
@@ -17,7 +17,16 @@
# under the License.
#
+syscfg.defs:
+ BOOT_LOADER:
+ description: 'Build everything as bootloader'
+ value: 1
+
syscfg.vals:
+ MYNEWT_DOWNLOADER: stflash
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F030R8
+
STM32_FLASH_SIZE_KB: 64
MCU_RAM_START: 0x20000000
MCU_RAM_SIZE: 0x2000
diff --git a/hw/bsp/nucleo-f072rb/bsp.yml b/hw/bsp/nucleo-f072rb/bsp.yml
index 96c50c3c1..e8068362f 100644
--- a/hw/bsp/nucleo-f072rb/bsp.yml
+++ b/hw/bsp/nucleo-f072rb/bsp.yml
@@ -23,20 +23,22 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m0
bsp.compiler: compiler/arm-none-eabi-m0
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/nucleo-f072rb/nucleo-f072rb_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nucleo-f072rb/nucleo-f072rb_debug.sh"
bsp.flash_map:
areas:
# System areas.
+ # Only one flash area for code
FLASH_AREA_BOOTLOADER:
- device: 0
- offset: 0x08100000
- size: 0kB
- FLASH_AREA_IMAGE_0:
device: 0
offset: 0x08000000
size: 128kB
+ # Empty flash area to allow build
+ FLASH_AREA_IMAGE_0:
+ device: 0
+ offset: 0x08100000
+ size: 0kB
FLASH_AREA_IMAGE_1:
device: 0
offset: 0x08200000
diff --git a/hw/bsp/nucleo-f072rb/nucleo-f072rb_download.sh b/hw/bsp/nucleo-f072rb/nucleo-f072rb_download.sh
deleted file mode 100755
index d4bcf66b6..000000000
--- a/hw/bsp/nucleo-f072rb/nucleo-f072rb_download.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-BOOT_LOADER=1
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/nucleo-f072rb/pkg.yml b/hw/bsp/nucleo-f072rb/pkg.yml
index 22c26efe9..6eb01bd18 100644
--- a/hw/bsp/nucleo-f072rb/pkg.yml
+++ b/hw/bsp/nucleo-f072rb/pkg.yml
@@ -37,3 +37,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f0xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-f072rb/syscfg.yml b/hw/bsp/nucleo-f072rb/syscfg.yml
index c346077f4..724442108 100644
--- a/hw/bsp/nucleo-f072rb/syscfg.yml
+++ b/hw/bsp/nucleo-f072rb/syscfg.yml
@@ -17,7 +17,16 @@
# under the License.
#
+syscfg.defs:
+ BOOT_LOADER:
+ description: 'Build everything as bootloader'
+ value: 1
+
syscfg.vals:
+ MYNEWT_DOWNLOADER: stflash
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F072RB
+
STM32_FLASH_SIZE_KB: 128
MCU_RAM_START: 0x20000000
MCU_RAM_SIZE: 0x4000
diff --git a/hw/bsp/nucleo-f401re/bsp.yml b/hw/bsp/nucleo-f401re/bsp.yml
index 8f1769d9a..f417447f2 100644
--- a/hw/bsp/nucleo-f401re/bsp.yml
+++ b/hw/bsp/nucleo-f401re/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m4
bsp.compiler: compiler/arm-none-eabi-m4
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/nucleo-f401re/nucleo-f401re_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nucleo-f401re/nucleo-f401re_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/nucleo-f401re/nucleo-f401re_download.sh b/hw/bsp/nucleo-f401re/nucleo-f401re_download.sh
deleted file mode 100755
index 0666699d9..000000000
--- a/hw/bsp/nucleo-f401re/nucleo-f401re_download.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-
-. $CORE_PATH/hw/scripts/openocd.sh
-
-CFG="-f board/st_nucleo_f4.cfg"
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-openocd_load
-openocd_reset_run
diff --git a/hw/bsp/nucleo-f401re/pkg.yml b/hw/bsp/nucleo-f401re/pkg.yml
index 43e0d2d7c..ca6d9f446 100644
--- a/hw/bsp/nucleo-f401re/pkg.yml
+++ b/hw/bsp/nucleo-f401re/pkg.yml
@@ -37,3 +37,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-f401re/syscfg.yml b/hw/bsp/nucleo-f401re/syscfg.yml
index e18b128f3..02f9b8738 100644
--- a/hw/bsp/nucleo-f401re/syscfg.yml
+++ b/hw/bsp/nucleo-f401re/syscfg.yml
@@ -18,6 +18,11 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: openocd
+ MYNEWT_DOWNLOADER_OPENOCD_BOARD: board/st_nucleo_f4.cfg
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F401RE
+
STM32_FLASH_SIZE_KB: 512
STM32_FLASH_NUM_AREAS: 8
MCU_RAM_START: 0x20000000
diff --git a/hw/bsp/nucleo-f411re/nucleo-f411re_download.sh b/hw/bsp/nucleo-f411re/nucleo-f411re_download.sh
deleted file mode 100755
index f8e57889c..000000000
--- a/hw/bsp/nucleo-f411re/nucleo-f411re_download.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-stlink_load
-
diff --git a/hw/bsp/nucleo-f413zh/bsp.yml b/hw/bsp/nucleo-f413zh/bsp.yml
index d23d63b1e..f2320307c 100644
--- a/hw/bsp/nucleo-f413zh/bsp.yml
+++ b/hw/bsp/nucleo-f413zh/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m4
bsp.compiler: compiler/arm-none-eabi-m4
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/nucleo-f413zh/nucleo-f413zh_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nucleo-f413zh/nucleo-f413zh_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/nucleo-f413zh/nucleo-f413zh_download.sh b/hw/bsp/nucleo-f413zh/nucleo-f413zh_download.sh
deleted file mode 100755
index 14b94cef2..000000000
--- a/hw/bsp/nucleo-f413zh/nucleo-f413zh_download.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/nucleo-f413zh/pkg.yml b/hw/bsp/nucleo-f413zh/pkg.yml
index 9ba2ec099..323542872 100644
--- a/hw/bsp/nucleo-f413zh/pkg.yml
+++ b/hw/bsp/nucleo-f413zh/pkg.yml
@@ -38,3 +38,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-f413zh/syscfg.yml b/hw/bsp/nucleo-f413zh/syscfg.yml
index 70de06f57..92d3d589c 100644
--- a/hw/bsp/nucleo-f413zh/syscfg.yml
+++ b/hw/bsp/nucleo-f413zh/syscfg.yml
@@ -18,6 +18,10 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: stflash
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F413ZH
+
STM32_FLASH_SIZE_KB: 1536
STM32_FLASH_NUM_AREAS: 16
MCU_RAM_START: 0x20000000
diff --git a/hw/bsp/nucleo-f439zi/bsp.yml b/hw/bsp/nucleo-f439zi/bsp.yml
index 552d31fec..923c4df76 100644
--- a/hw/bsp/nucleo-f439zi/bsp.yml
+++ b/hw/bsp/nucleo-f439zi/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m4
bsp.compiler: compiler/arm-none-eabi-m4
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/nucleo-f439zi/nucleo-f439zi_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nucleo-f439zi/nucleo-f439zi_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/nucleo-f439zi/nucleo-f439zi_download.sh b/hw/bsp/nucleo-f439zi/nucleo-f439zi_download.sh
deleted file mode 100755
index f224f149a..000000000
--- a/hw/bsp/nucleo-f439zi/nucleo-f439zi_download.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/nucleo-f439zi/pkg.yml b/hw/bsp/nucleo-f439zi/pkg.yml
index ba1d6cae3..2d6da4b78 100644
--- a/hw/bsp/nucleo-f439zi/pkg.yml
+++ b/hw/bsp/nucleo-f439zi/pkg.yml
@@ -38,3 +38,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-f439zi/syscfg.yml b/hw/bsp/nucleo-f439zi/syscfg.yml
index 2d251c2ec..4dbb7036b 100644
--- a/hw/bsp/nucleo-f439zi/syscfg.yml
+++ b/hw/bsp/nucleo-f439zi/syscfg.yml
@@ -18,6 +18,10 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: stflash
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F439ZI
+
STM32_FLASH_SIZE_KB: 2048
STM32_FLASH_NUM_AREAS: 24
MCU_RAM_START: 0x20000000
diff --git a/hw/bsp/nucleo-f746zg/bsp.yml b/hw/bsp/nucleo-f746zg/bsp.yml
index 708639e82..aed844d31 100644
--- a/hw/bsp/nucleo-f746zg/bsp.yml
+++ b/hw/bsp/nucleo-f746zg/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m7
bsp.compiler: compiler/arm-none-eabi-m7
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/nucleo-f746zg/nucleo-f746zg_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/nucleo-f746zg/nucleo-f746zg_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/nucleo-f746zg/nucleo-f746zg_download.sh b/hw/bsp/nucleo-f746zg/nucleo-f746zg_download.sh
deleted file mode 100755
index 530b238d1..000000000
--- a/hw/bsp/nucleo-f746zg/nucleo-f746zg_download.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
-
-CFG="-s $BSP_PATH -f nucleo-f746zg.cfg"
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-openocd_load
-openocd_reset_run
diff --git a/hw/bsp/olimex-p103/bsp.yml b/hw/bsp/olimex-p103/bsp.yml
index 84303e44f..aa36350ae 100644
--- a/hw/bsp/olimex-p103/bsp.yml
+++ b/hw/bsp/olimex-p103/bsp.yml
@@ -23,16 +23,22 @@ bsp.maker: "Olimex"
bsp.arch: cortex_m3
bsp.compiler: compiler/arm-none-eabi-m3
bsp.linkerscript: "autogenerated"
-bsp.downloadscript: "hw/bsp/olimex-p103/olimex_p103_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/olimex-p103/olimex_p103_debug.sh"
bsp.flash_map:
areas:
# System areas.
- FLASH_AREA_IMAGE_0:
+ # Only one flash area for code
+ FLASH_AREA_BOOTLOADER:
device: 0
offset: 0x08000000
size: 112kB
+ # Empty flash area to allow build
+ FLASH_AREA_IMAGE_0:
+ device: 0
+ offset: 0x08020000
+ size: 0kB
# User areas.
FLASH_AREA_REBOOT_LOG:
diff --git a/hw/bsp/olimex-p103/olimex_p103_download.sh b/hw/bsp/olimex-p103/olimex_p103_download.sh
deleted file mode 100755
index 48eaff7c6..000000000
--- a/hw/bsp/olimex-p103/olimex_p103_download.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
-
-CFG="-s $BSP_PATH -f olimex_p103.cfg"
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-BOOT_LOADER=1
-
-common_file_to_load
-openocd_load
-openocd_reset_run
diff --git a/hw/bsp/olimex-p103/pkg.yml b/hw/bsp/olimex-p103/pkg.yml
index 8ae7dc126..21e3105ae 100644
--- a/hw/bsp/olimex-p103/pkg.yml
+++ b/hw/bsp/olimex-p103/pkg.yml
@@ -32,3 +32,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f1xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/olimex-p103/syscfg.yml b/hw/bsp/olimex-p103/syscfg.yml
index d3e124e15..8eb28eda1 100644
--- a/hw/bsp/olimex-p103/syscfg.yml
+++ b/hw/bsp/olimex-p103/syscfg.yml
@@ -17,7 +17,17 @@
# under the License.
#
+syscfg.defs:
+ BOOT_LOADER:
+ description: 'Build everything as bootloader'
+ value: 1
+
syscfg.vals:
+ MYNEWT_DOWNLOADER: openocd
+ MYNEWT_DOWNLOADER_OPENOCD_CFG: olimex_p103.cfg
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F103RB
+
STM32_FLASH_SIZE_KB: 128
MCU_RAM_START: 0x20000000
MCU_RAM_SIZE: 20K
diff --git a/hw/bsp/olimex_stm32-e407_devboard/bsp.yml b/hw/bsp/olimex_stm32-e407_devboard/bsp.yml
index 9c4a2f6ac..6a6b18e08 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/bsp.yml
+++ b/hw/bsp/olimex_stm32-e407_devboard/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "Olimex"
bsp.arch: cortex_m4
bsp.compiler: compiler/arm-none-eabi-m4
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh b/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh
deleted file mode 100755
index b58079567..000000000
--- a/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-
-. $CORE_PATH/hw/scripts/openocd.sh
-
-CFG="-f interface/ftdi/olimex-arm-usb-tiny-h.cfg -s $BSP_PATH -f target/stm32f4x.cfg"
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-openocd_load
-openocd_reset_run
diff --git a/hw/bsp/olimex_stm32-e407_devboard/pkg.yml b/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
index 473630208..e9de0f14e 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
+++ b/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
@@ -38,3 +38,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml b/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml
index 85e4bf02b..f86f86503 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml
+++ b/hw/bsp/olimex_stm32-e407_devboard/syscfg.yml
@@ -17,6 +17,12 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: openocd
+ MYNEWT_DOWNLOADER_OPENOCD_INTERFACE: interface/ftdi/olimex-arm-usb-tiny-h.cfg
+ MYNEWT_DOWNLOADER_OPENOCD_BOARD: target/stm32f4x.cfg
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F407ZG
+
STM32_FLASH_SIZE_KB: 1024
STM32_FLASH_NUM_AREAS: 12
MCU_RAM_START: 0x20000000
diff --git a/hw/bsp/stm32f411discovery/bsp.yml b/hw/bsp/stm32f411discovery/bsp.yml
index 81a77f720..92a986ae8 100644
--- a/hw/bsp/stm32f411discovery/bsp.yml
+++ b/hw/bsp/stm32f411discovery/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m4
bsp.compiler: compiler/arm-none-eabi-m4
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/stm32f411discovery/stm32f411discovery_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/stm32f411discovery/stm32f411discovery_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/stm32f411discovery/pkg.yml b/hw/bsp/stm32f411discovery/pkg.yml
index dfea62b7c..ab5a549d1 100644
--- a/hw/bsp/stm32f411discovery/pkg.yml
+++ b/hw/bsp/stm32f411discovery/pkg.yml
@@ -38,3 +38,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/stm32f411discovery/stm32f411discovery_download.sh b/hw/bsp/stm32f411discovery/stm32f411discovery_download.sh
deleted file mode 100755
index 55f86d47d..000000000
--- a/hw/bsp/stm32f411discovery/stm32f411discovery_download.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/stm32f411discovery/syscfg.yml b/hw/bsp/stm32f411discovery/syscfg.yml
index 43d4cc35f..683838143 100644
--- a/hw/bsp/stm32f411discovery/syscfg.yml
+++ b/hw/bsp/stm32f411discovery/syscfg.yml
@@ -18,6 +18,10 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: stflash
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F411VE
+
STM32_FLASH_SIZE_KB: 512
STM32_FLASH_NUM_AREAS: 8
MCU_RAM_START: 0x20000000
diff --git a/hw/bsp/stm32f429discovery/bsp.yml b/hw/bsp/stm32f429discovery/bsp.yml
index 0daaabe71..5e72f3496 100644
--- a/hw/bsp/stm32f429discovery/bsp.yml
+++ b/hw/bsp/stm32f429discovery/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m4
bsp.compiler: compiler/arm-none-eabi-m4
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/stm32f429discovery/stm32f429discovery_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/stm32f429discovery/stm32f429discovery_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/stm32f429discovery/pkg.yml b/hw/bsp/stm32f429discovery/pkg.yml
index bba941659..f90a22805 100644
--- a/hw/bsp/stm32f429discovery/pkg.yml
+++ b/hw/bsp/stm32f429discovery/pkg.yml
@@ -36,3 +36,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/stm32f429discovery/stm32f429discovery_download.sh b/hw/bsp/stm32f429discovery/stm32f429discovery_download.sh
deleted file mode 100755
index 8d7e558f5..000000000
--- a/hw/bsp/stm32f429discovery/stm32f429discovery_download.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
-
-CFG="-f board/stm32f429discovery.cfg"
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-openocd_load
-openocd_reset_run
diff --git a/hw/bsp/stm32f429discovery/syscfg.yml b/hw/bsp/stm32f429discovery/syscfg.yml
index cdce90744..c210c726f 100644
--- a/hw/bsp/stm32f429discovery/syscfg.yml
+++ b/hw/bsp/stm32f429discovery/syscfg.yml
@@ -18,6 +18,11 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: openocd
+ MYNEWT_DOWNLOADER_OPENOCD_BOARD: board/stm32f429discovery.cfg
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F429ZI
+
STM32_FLASH_SIZE_KB: 2048
STM32_FLASH_NUM_AREAS: 24
MCU_RAM_START: 0x20000000
diff --git a/hw/bsp/stm32f4discovery/bsp.yml b/hw/bsp/stm32f4discovery/bsp.yml
index ece168870..8e9148a37 100644
--- a/hw/bsp/stm32f4discovery/bsp.yml
+++ b/hw/bsp/stm32f4discovery/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m4
bsp.compiler: compiler/arm-none-eabi-m4
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/stm32f4discovery/stm32f4discovery_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/stm32f4discovery/stm32f4discovery_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/stm32f4discovery/pkg.yml b/hw/bsp/stm32f4discovery/pkg.yml
index 6556dff7b..11751307b 100644
--- a/hw/bsp/stm32f4discovery/pkg.yml
+++ b/hw/bsp/stm32f4discovery/pkg.yml
@@ -36,3 +36,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
- "@apache-mynewt-core/libc"
- "@apache-mynewt-core/boot/startup"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/stm32f4discovery/stm32f4discovery_download.sh b/hw/bsp/stm32f4discovery/stm32f4discovery_download.sh
deleted file mode 100755
index 7a30cf5e9..000000000
--- a/hw/bsp/stm32f4discovery/stm32f4discovery_download.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
-
-CFG="-s $BSP_PATH -f f4discovery.cfg"
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-openocd_load
-openocd_reset_run
diff --git a/hw/bsp/stm32f4discovery/syscfg.yml b/hw/bsp/stm32f4discovery/syscfg.yml
index 82dcc8121..af95b5edb 100644
--- a/hw/bsp/stm32f4discovery/syscfg.yml
+++ b/hw/bsp/stm32f4discovery/syscfg.yml
@@ -18,6 +18,11 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: openocd
+ MYNEWT_DOWNLOADER_OPENOCD_CFG: f4discovery.cfg
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32F407VG
+
STM32_FLASH_SIZE_KB: 1024
STM32_FLASH_NUM_AREAS: 12
MCU_RAM_START: 0x20000000
diff --git a/hw/bsp/stm32f7discovery/bsp.yml b/hw/bsp/stm32f7discovery/bsp.yml
index 0b79ee44d..3f9833498 100644
--- a/hw/bsp/stm32f7discovery/bsp.yml
+++ b/hw/bsp/stm32f7discovery/bsp.yml
@@ -23,7 +23,7 @@ bsp.maker: "STMicroelectronics"
bsp.arch: cortex_m7
bsp.compiler: compiler/arm-none-eabi-m7
bsp.linkerscript: autogenerated
-bsp.downloadscript: "hw/bsp/stm32f7discovery/stm32f7discovery_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/stm32f7discovery/stm32f7discovery_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/stm32f7discovery/stm32f7discovery_download.sh b/hw/bsp/stm32f7discovery/stm32f7discovery_download.sh
deleted file mode 100755
index 8d9b3b02d..000000000
--- a/hw/bsp/stm32f7discovery/stm32f7discovery_download.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
-
-CFG="-s $BSP_PATH -f stm32f7discovery.cfg"
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-openocd_load
-openocd_reset_run
diff --git a/hw/bsp/stm32l152discovery/bsp.yml b/hw/bsp/stm32l152discovery/bsp.yml
index adc2531ae..49a86fb05 100644
--- a/hw/bsp/stm32l152discovery/bsp.yml
+++ b/hw/bsp/stm32l152discovery/bsp.yml
@@ -28,7 +28,7 @@ bsp.linkerscript:
bsp.linkerscript.BOOT_LOADER.OVERWRITE:
- "hw/bsp/stm32l152discovery/boot-stm32l152discovery.ld"
- "@apache-mynewt-core/hw/mcu/stm/stm32l1xx/stm32l152.ld"
-bsp.downloadscript: "hw/bsp/stm32l152discovery/stm32l152discovery_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
bsp.debugscript: "hw/bsp/stm32l152discovery/stm32l152discovery_debug.sh"
bsp.flash_map:
diff --git a/hw/bsp/stm32l152discovery/pkg.yml b/hw/bsp/stm32l152discovery/pkg.yml
index 5dc3323a7..d02a943ff 100644
--- a/hw/bsp/stm32l152discovery/pkg.yml
+++ b/hw/bsp/stm32l152discovery/pkg.yml
@@ -32,3 +32,4 @@ pkg.cflags: -DSTM32L152xC
pkg.deps:
- "@apache-mynewt-core/hw/mcu/stm/stm32l1xx"
- "@apache-mynewt-core/libc"
+ - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/stm32l152discovery/stm32l152discovery_download.sh b/hw/bsp/stm32l152discovery/stm32l152discovery_download.sh
deleted file mode 100755
index 5d6d649ab..000000000
--- a/hw/bsp/stm32l152discovery/stm32l152discovery_download.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# Called with following variables set:
-# - CORE_PATH is absolute path to @apache-mynewt-core
-# - BSP_PATH is absolute path to hw/bsp/bsp_name
-# - BIN_BASENAME is the path to prefix to target binary,
-# .elf appended to name is the ELF file
-# - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-# - FEATURES holds the target features string
-# - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-# - MFG_IMAGE is "1" if this is a manufacturing image
-# - FLASH_OFFSET contains the flash offset to download to
-# - BOOT_LOADER is set if downloading a bootloader
-
-. $CORE_PATH/hw/scripts/stlink.sh
-
-if [ "$MFG_IMAGE" ]; then
- FLASH_OFFSET=0x08000000
-fi
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/stm32l152discovery/syscfg.yml b/hw/bsp/stm32l152discovery/syscfg.yml
index 1e995d26d..05119d737 100644
--- a/hw/bsp/stm32l152discovery/syscfg.yml
+++ b/hw/bsp/stm32l152discovery/syscfg.yml
@@ -18,6 +18,10 @@
#
syscfg.vals:
+ MYNEWT_DOWNLOADER: stflash
+ MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+ JLINK_TARGET: STM32L152RC
+
STM32_FLASH_SIZE_KB: 256
STM32_CLOCK_VOLTAGESCALING_CONFIG: 'PWR_REGULATOR_VOLTAGE_SCALE1'
STM32_CLOCK_LSI: 1