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 2023/05/31 10:16:04 UTC

[mynewt-core] branch master updated (aefd2c48f -> 66c4d77c5)

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

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


    from aefd2c48f tinyusb: Fix CFG_TUSB_OS for custom bootlader builds
     new 772830063 hw/bsp: nucleo-h723zg add syscfg selectable download script
     new 1fc0ba14d hw/bsp: nucleo-u575zi-q add syscfg selectable download script
     new 125e6f22f hw/bsp: nucleo-f103rb add syscfg selectable download script
     new 277a15ac9 hw/bsp: nucleo-l073rz adjust bsp flash map to fit the bootloader
     new 748d060e1 hw/bsp: nucleo-l073rz add syscfg selectable download script
     new ebc5f0672 hw/bsp: nucleo-l476rg add syscfg selectable download script
     new d3183c22b hw/bsp: nucleo-wb55 add syscfg selectable download script
     new 89a8da0d3 hw/bsp: p-nucleo-wb55-usbdongle add syscfg selectable download script
     new 72689af13 hw/bsp: black_vet6 add syscfg selectable download script
     new c2631062b hw/bsp: bluepill add syscfg selectable download script
     new 66c4d77c5 hw/bsp: nordic_pca10040 add syscfg selectable download script

The 11 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:
 hw/bsp/black_vet6/bsp.yml                          |  5 +--
 hw/bsp/black_vet6/pkg.yml                          |  1 +
 hw/bsp/black_vet6/stm32f4ve_debug.cmd              | 22 ------------
 hw/bsp/black_vet6/stm32f4ve_download.cmd           | 22 ------------
 hw/bsp/black_vet6/stm32f4ve_download.sh            | 38 --------------------
 hw/bsp/black_vet6/syscfg.yml                       |  5 +++
 hw/bsp/bluepill/bluepill_debug.cmd                 | 22 ------------
 hw/bsp/bluepill/bluepill_download.cmd              | 22 ------------
 hw/bsp/bluepill/bsp.yml                            |  5 +--
 hw/bsp/bluepill/pkg.yml                            |  1 +
 hw/bsp/bluepill/syscfg.yml                         |  7 ++++
 hw/bsp/nordic_pca10040/bsp.yml                     |  4 +--
 hw/bsp/nordic_pca10040/nordic_pca10040_debug.cmd   | 22 ------------
 .../nordic_pca10040/nordic_pca10040_download.cmd   | 22 ------------
 hw/bsp/nordic_pca10040/nordic_pca10040_download.sh | 40 ---------------------
 hw/bsp/nordic_pca10040/pkg.yml                     |  2 +-
 hw/bsp/nordic_pca10040/syscfg.yml                  |  6 ++++
 hw/bsp/nucleo-f103rb/bsp.yml                       |  4 +--
 hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.cmd       | 22 ------------
 hw/bsp/nucleo-f103rb/nucleo_f103rb_download.cmd    | 22 ------------
 hw/bsp/nucleo-f103rb/nucleo_f103rb_download.sh     | 39 --------------------
 hw/bsp/nucleo-f103rb/pkg.yml                       |  1 +
 hw/bsp/nucleo-f103rb/syscfg.yml                    |  6 ++++
 hw/bsp/nucleo-h723zg/bsp.yml                       |  2 +-
 hw/bsp/nucleo-h723zg/nucleo-h723zg_download.sh     | 39 --------------------
 hw/bsp/nucleo-h723zg/pkg.yml                       |  1 +
 hw/bsp/nucleo-h723zg/syscfg.yml                    |  5 +++
 hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld         |  2 +-
 hw/bsp/nucleo-l073rz/bsp.yml                       | 10 +++---
 hw/bsp/nucleo-l073rz/nucleo-l073rz_download.sh     | 39 --------------------
 hw/bsp/nucleo-l073rz/pkg.yml                       |  1 +
 hw/bsp/nucleo-l073rz/syscfg.yml                    |  5 +++
 hw/bsp/nucleo-l476rg/bsp.yml                       |  4 +--
 hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.cmd       | 22 ------------
 hw/bsp/nucleo-l476rg/nucleo-l476rg_download.cmd    | 22 ------------
 hw/bsp/nucleo-l476rg/nucleo-l476rg_download.sh     | 39 --------------------
 hw/bsp/nucleo-l476rg/pkg.yml                       |  1 +
 hw/bsp/nucleo-l476rg/syscfg.yml                    |  5 +++
 hw/bsp/nucleo-u575zi-q/bsp.yml                     |  2 +-
 hw/bsp/nucleo-u575zi-q/download.sh                 | 39 --------------------
 hw/bsp/nucleo-u575zi-q/pkg.yml                     |  1 +
 hw/bsp/nucleo-u575zi-q/syscfg.yml                  |  3 ++
 hw/bsp/p-nucleo-wb55-usbdongle/bsp.yml             |  2 +-
 .../p-nucleo-wb55_download.sh                      | 41 ----------------------
 hw/bsp/p-nucleo-wb55-usbdongle/pkg.yml             |  1 +
 hw/bsp/p-nucleo-wb55-usbdongle/syscfg.yml          |  5 +++
 hw/bsp/p-nucleo-wb55/bsp.yml                       |  4 +--
 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.cmd       | 22 ------------
 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.cmd    | 22 ------------
 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.sh     | 39 --------------------
 hw/bsp/p-nucleo-wb55/pkg.yml                       |  1 +
 hw/bsp/p-nucleo-wb55/syscfg.yml                    |  5 +++
 52 files changed, 77 insertions(+), 647 deletions(-)
 delete mode 100755 hw/bsp/black_vet6/stm32f4ve_debug.cmd
 delete mode 100755 hw/bsp/black_vet6/stm32f4ve_download.cmd
 delete mode 100755 hw/bsp/black_vet6/stm32f4ve_download.sh
 delete mode 100755 hw/bsp/bluepill/bluepill_debug.cmd
 delete mode 100755 hw/bsp/bluepill/bluepill_download.cmd
 delete mode 100755 hw/bsp/nordic_pca10040/nordic_pca10040_debug.cmd
 delete mode 100755 hw/bsp/nordic_pca10040/nordic_pca10040_download.cmd
 delete mode 100755 hw/bsp/nordic_pca10040/nordic_pca10040_download.sh
 delete mode 100755 hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.cmd
 delete mode 100755 hw/bsp/nucleo-f103rb/nucleo_f103rb_download.cmd
 delete mode 100755 hw/bsp/nucleo-f103rb/nucleo_f103rb_download.sh
 delete mode 100644 hw/bsp/nucleo-h723zg/nucleo-h723zg_download.sh
 delete mode 100755 hw/bsp/nucleo-l073rz/nucleo-l073rz_download.sh
 delete mode 100755 hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.cmd
 delete mode 100755 hw/bsp/nucleo-l476rg/nucleo-l476rg_download.cmd
 delete mode 100755 hw/bsp/nucleo-l476rg/nucleo-l476rg_download.sh
 delete mode 100644 hw/bsp/nucleo-u575zi-q/download.sh
 delete mode 100755 hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_download.sh
 delete mode 100755 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.cmd
 delete mode 100755 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.cmd
 delete mode 100755 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.sh


[mynewt-core] 07/11: hw/bsp: nucleo-wb55 add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit d3183c22b7b7b8206d776cd043e9407196065d65
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Mon May 29 11:11:21 2023 +0200

    hw/bsp: nucleo-wb55 add syscfg selectable download script
---
 hw/bsp/p-nucleo-wb55/bsp.yml                    |  4 +--
 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.cmd    | 22 --------------
 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.cmd | 22 --------------
 hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.sh  | 39 -------------------------
 hw/bsp/p-nucleo-wb55/pkg.yml                    |  1 +
 hw/bsp/p-nucleo-wb55/syscfg.yml                 |  5 ++++
 6 files changed, 7 insertions(+), 86 deletions(-)

diff --git a/hw/bsp/p-nucleo-wb55/bsp.yml b/hw/bsp/p-nucleo-wb55/bsp.yml
index f42d8563b..53d7c91c4 100644
--- a/hw/bsp/p-nucleo-wb55/bsp.yml
+++ b/hw/bsp/p-nucleo-wb55/bsp.yml
@@ -28,10 +28,8 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - "hw/bsp/p-nucleo-wb55/boot-p-nucleo-wb55.ld"
     - "@apache-mynewt-core/hw/mcu/stm/stm32wbxx/stm32wb55.ld"
-bsp.downloadscript: "hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.cmd"
 
 bsp.flash_map:
     areas:
diff --git a/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.cmd b/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_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/p-nucleo-wb55/p-nucleo-wb55_download.cmd b/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_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/p-nucleo-wb55/p-nucleo-wb55_download.sh b/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_download.sh
deleted file mode 100755
index 5d6d649ab..000000000
--- a/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_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/p-nucleo-wb55/pkg.yml b/hw/bsp/p-nucleo-wb55/pkg.yml
index 7bcb92810..39b52bbae 100644
--- a/hw/bsp/p-nucleo-wb55/pkg.yml
+++ b/hw/bsp/p-nucleo-wb55/pkg.yml
@@ -36,3 +36,4 @@ pkg.cflags.HARDFLOAT:
 pkg.deps:
     - "@apache-mynewt-core/hw/mcu/stm/stm32wbxx"
     - "@apache-mynewt-core/libc/baselibc"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/p-nucleo-wb55/syscfg.yml b/hw/bsp/p-nucleo-wb55/syscfg.yml
index aae359d86..bfd872dad 100644
--- a/hw/bsp/p-nucleo-wb55/syscfg.yml
+++ b/hw/bsp/p-nucleo-wb55/syscfg.yml
@@ -67,3 +67,8 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM2'
     TIMER_1_TIM: 'TIM16'
     TIMER_2_TIM: 'TIM17'
+
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: stflash
+    JLINK_TARGET: STM32WB55RG
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000


[mynewt-core] 06/11: hw/bsp: nucleo-l476rg add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ebc5f0672558cd7d1bb86b6134e21d26953febe5
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Fri May 26 16:41:22 2023 +0200

    hw/bsp: nucleo-l476rg add syscfg selectable download script
---
 hw/bsp/nucleo-l476rg/bsp.yml                    |  4 +--
 hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.cmd    | 22 --------------
 hw/bsp/nucleo-l476rg/nucleo-l476rg_download.cmd | 22 --------------
 hw/bsp/nucleo-l476rg/nucleo-l476rg_download.sh  | 39 -------------------------
 hw/bsp/nucleo-l476rg/pkg.yml                    |  1 +
 hw/bsp/nucleo-l476rg/syscfg.yml                 |  5 ++++
 6 files changed, 7 insertions(+), 86 deletions(-)

diff --git a/hw/bsp/nucleo-l476rg/bsp.yml b/hw/bsp/nucleo-l476rg/bsp.yml
index 4f9d3441f..90196bce3 100644
--- a/hw/bsp/nucleo-l476rg/bsp.yml
+++ b/hw/bsp/nucleo-l476rg/bsp.yml
@@ -28,10 +28,8 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - "hw/bsp/nucleo-l476rg/boot-nucleo-l476rg.ld"
     - "@apache-mynewt-core/hw/mcu/stm/stm32l4xx/stm32l476.ld"
-bsp.downloadscript: "hw/bsp/nucleo-l476rg/nucleo-l476rg_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/nucleo-l476rg/nucleo-l476rg_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.cmd"
 
 bsp.flash_map:
     areas:
diff --git a/hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.cmd b/hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nucleo-l476rg/nucleo-l476rg_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/nucleo-l476rg/nucleo-l476rg_download.cmd b/hw/bsp/nucleo-l476rg/nucleo-l476rg_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nucleo-l476rg/nucleo-l476rg_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/nucleo-l476rg/nucleo-l476rg_download.sh b/hw/bsp/nucleo-l476rg/nucleo-l476rg_download.sh
deleted file mode 100755
index 5d6d649ab..000000000
--- a/hw/bsp/nucleo-l476rg/nucleo-l476rg_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/nucleo-l476rg/pkg.yml b/hw/bsp/nucleo-l476rg/pkg.yml
index c8ddd393c..3eab05a64 100644
--- a/hw/bsp/nucleo-l476rg/pkg.yml
+++ b/hw/bsp/nucleo-l476rg/pkg.yml
@@ -36,3 +36,4 @@ pkg.cflags.HARDFLOAT:
 pkg.deps:
     - "@apache-mynewt-core/hw/mcu/stm/stm32l4xx"
     - "@apache-mynewt-core/libc/baselibc"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-l476rg/syscfg.yml b/hw/bsp/nucleo-l476rg/syscfg.yml
index ea842f16c..159cdc83c 100644
--- a/hw/bsp/nucleo-l476rg/syscfg.yml
+++ b/hw/bsp/nucleo-l476rg/syscfg.yml
@@ -69,3 +69,8 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM2'
     TIMER_1_TIM: 'TIM3'
     TIMER_2_TIM: 'TIM4'
+
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: stflash
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+    JLINK_TARGET: STM32L476RG


[mynewt-core] 02/11: hw/bsp: nucleo-u575zi-q add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1fc0ba14da19cd15f46f4ea6b2ee5889fd2618d8
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Fri May 26 14:05:40 2023 +0200

    hw/bsp: nucleo-u575zi-q add syscfg selectable download script
---
 hw/bsp/nucleo-u575zi-q/bsp.yml     |  2 +-
 hw/bsp/nucleo-u575zi-q/download.sh | 39 --------------------------------------
 hw/bsp/nucleo-u575zi-q/pkg.yml     |  1 +
 hw/bsp/nucleo-u575zi-q/syscfg.yml  |  3 +++
 4 files changed, 5 insertions(+), 40 deletions(-)

diff --git a/hw/bsp/nucleo-u575zi-q/bsp.yml b/hw/bsp/nucleo-u575zi-q/bsp.yml
index dc7784905..af40c439a 100644
--- a/hw/bsp/nucleo-u575zi-q/bsp.yml
+++ b/hw/bsp/nucleo-u575zi-q/bsp.yml
@@ -28,7 +28,7 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - "hw/bsp/nucleo-u575zi-q/boot-nucleo-u575zi-q.ld"
     - "@apache-mynewt-core/hw/mcu/stm/stm32u5xx/stm32u5xx.ld"
-bsp.downloadscript: "hw/bsp/nucleo-u575zi-q/download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/nucleo-u575zi-q/debug.sh"
 
 bsp.flash_map:
diff --git a/hw/bsp/nucleo-u575zi-q/download.sh b/hw/bsp/nucleo-u575zi-q/download.sh
deleted file mode 100644
index ad96a8d44..000000000
--- a/hw/bsp/nucleo-u575zi-q/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=0x0C000000
-fi
-
-common_file_to_load
-stlink_load
diff --git a/hw/bsp/nucleo-u575zi-q/pkg.yml b/hw/bsp/nucleo-u575zi-q/pkg.yml
index d6083fd2c..df713a0c3 100644
--- a/hw/bsp/nucleo-u575zi-q/pkg.yml
+++ b/hw/bsp/nucleo-u575zi-q/pkg.yml
@@ -37,3 +37,4 @@ pkg.deps:
     - "@apache-mynewt-core/libc/baselibc"
     - "@apache-mynewt-core/hw/drivers/flash/spiflash"
     - "@apache-mynewt-core/hw/bus/drivers/spi_hal"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-u575zi-q/syscfg.yml b/hw/bsp/nucleo-u575zi-q/syscfg.yml
index d94d73568..be26c76b1 100644
--- a/hw/bsp/nucleo-u575zi-q/syscfg.yml
+++ b/hw/bsp/nucleo-u575zi-q/syscfg.yml
@@ -73,3 +73,6 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM15'
     TIMER_1_TIM: 'TIM16'
     TIMER_2_TIM: 'TIM17'
+    MYNEWT_DOWNLOADER: stm32_programmer_cli
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x0C000000
+    JLINK_TARGET: STM32U575ZI


[mynewt-core] 11/11: hw/bsp: nordic_pca10040 add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 66c4d77c5d36a2ead95bf0bde1de36d8ea0e8675
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Mon May 29 14:41:22 2023 +0200

    hw/bsp: nordic_pca10040 add syscfg selectable download script
---
 hw/bsp/nordic_pca10040/bsp.yml                     |  4 +--
 hw/bsp/nordic_pca10040/nordic_pca10040_debug.cmd   | 22 ------------
 .../nordic_pca10040/nordic_pca10040_download.cmd   | 22 ------------
 hw/bsp/nordic_pca10040/nordic_pca10040_download.sh | 40 ----------------------
 hw/bsp/nordic_pca10040/pkg.yml                     |  2 +-
 hw/bsp/nordic_pca10040/syscfg.yml                  |  6 ++++
 6 files changed, 8 insertions(+), 88 deletions(-)

diff --git a/hw/bsp/nordic_pca10040/bsp.yml b/hw/bsp/nordic_pca10040/bsp.yml
index 4e72502a9..a69e260cc 100644
--- a/hw/bsp/nordic_pca10040/bsp.yml
+++ b/hw/bsp/nordic_pca10040/bsp.yml
@@ -32,10 +32,8 @@ bsp.linkerscript.RAM_RESIDENT.OVERWRITE:
     - "hw/bsp/nordic_pca10040/boot-nrf52xxaa.ld"
     - "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx/nrf52_ram_resident.ld"
 bsp.part2linkerscript: "hw/bsp/nordic_pca10040/split-nordic_pca10040.ld"
-bsp.downloadscript: "hw/bsp/nordic_pca10040/nordic_pca10040_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/nordic_pca10040/nordic_pca10040_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/nordic_pca10040/nordic_pca10040_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/nordic_pca10040/nordic_pca10040_debug.cmd"
 
 bsp.flash_map:
     areas:
diff --git a/hw/bsp/nordic_pca10040/nordic_pca10040_debug.cmd b/hw/bsp/nordic_pca10040/nordic_pca10040_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nordic_pca10040/nordic_pca10040_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_pca10040/nordic_pca10040_download.cmd b/hw/bsp/nordic_pca10040/nordic_pca10040_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nordic_pca10040/nordic_pca10040_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_pca10040/nordic_pca10040_download.sh b/hw/bsp/nordic_pca10040/nordic_pca10040_download.sh
deleted file mode 100755
index 08d45b464..000000000
--- a/hw/bsp/nordic_pca10040/nordic_pca10040_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/jlink.sh
-
-if [ "$MFG_IMAGE" ]; then
-    FLASH_OFFSET=0x0
-fi
-
-JLINK_DEV="nRF52"
-
-common_file_to_load
-jlink_load
diff --git a/hw/bsp/nordic_pca10040/pkg.yml b/hw/bsp/nordic_pca10040/pkg.yml
index 3354359d8..62ff97fdf 100644
--- a/hw/bsp/nordic_pca10040/pkg.yml
+++ b/hw/bsp/nordic_pca10040/pkg.yml
@@ -37,6 +37,7 @@ pkg.cflags.HARDFLOAT:
 pkg.deps:
     - "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx"
     - "@apache-mynewt-core/libc/baselibc"
+    - "@apache-mynewt-core/hw/scripts"
 
 pkg.deps.ENC_FLASH_DEV:
     - "@apache-mynewt-core/hw/drivers/flash/enc_flash/ef_nrf5x"
@@ -46,4 +47,3 @@ pkg.deps.SOFT_PWM:
 
 pkg.deps.UARTBB_0:
     - "@apache-mynewt-core/hw/drivers/uart/uart_bitbang"
-
diff --git a/hw/bsp/nordic_pca10040/syscfg.yml b/hw/bsp/nordic_pca10040/syscfg.yml
index 61ba10f95..9bf07fb6a 100644
--- a/hw/bsp/nordic_pca10040/syscfg.yml
+++ b/hw/bsp/nordic_pca10040/syscfg.yml
@@ -61,6 +61,12 @@ syscfg.vals:
     MCU_LFCLK_SOURCE: LFXO
     BOOT_SERIAL_DETECT_PIN: 13  # Button 1
 
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: jlink
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x0
+    PYOCD_TARGET: nrf52
+    JLINK_TARGET: nRF52832_xxAA
+
 syscfg.vals.BLE_CONTROLLER:
     TIMER_0: 0
     TIMER_5: 1


[mynewt-core] 01/11: hw/bsp: nucleo-h723zg add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 772830063cb9fe40ed3196b11bb6f05adfa01fe7
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Fri May 26 13:51:26 2023 +0200

    hw/bsp: nucleo-h723zg add syscfg selectable download script
---
 hw/bsp/nucleo-h723zg/bsp.yml                   |  2 +-
 hw/bsp/nucleo-h723zg/nucleo-h723zg_download.sh | 39 --------------------------
 hw/bsp/nucleo-h723zg/pkg.yml                   |  1 +
 hw/bsp/nucleo-h723zg/syscfg.yml                |  5 ++++
 4 files changed, 7 insertions(+), 40 deletions(-)

diff --git a/hw/bsp/nucleo-h723zg/bsp.yml b/hw/bsp/nucleo-h723zg/bsp.yml
index 1f234936b..f96f05bce 100644
--- a/hw/bsp/nucleo-h723zg/bsp.yml
+++ b/hw/bsp/nucleo-h723zg/bsp.yml
@@ -28,7 +28,7 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - "hw/bsp/nucleo-h723zg/boot-nucleo-h723zg.ld"
     - "@apache-mynewt-core/hw/mcu/stm/stm32h7xx/stm32h723.ld"
-bsp.downloadscript: "hw/bsp/nucleo-h723zg/nucleo-h723zg_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/nucleo-h723zg/nucleo-h723zg_debug.sh"
 
 bsp.flash_map:
diff --git a/hw/bsp/nucleo-h723zg/nucleo-h723zg_download.sh b/hw/bsp/nucleo-h723zg/nucleo-h723zg_download.sh
deleted file mode 100644
index 5d6d649ab..000000000
--- a/hw/bsp/nucleo-h723zg/nucleo-h723zg_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/nucleo-h723zg/pkg.yml b/hw/bsp/nucleo-h723zg/pkg.yml
index a5e4d8eae..4bea59b7d 100644
--- a/hw/bsp/nucleo-h723zg/pkg.yml
+++ b/hw/bsp/nucleo-h723zg/pkg.yml
@@ -37,3 +37,4 @@ pkg.deps:
     - "@apache-mynewt-core/libc/baselibc"
     - "@apache-mynewt-core/hw/drivers/flash/spiflash"
     - "@apache-mynewt-core/hw/bus/drivers/spi_hal"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-h723zg/syscfg.yml b/hw/bsp/nucleo-h723zg/syscfg.yml
index b6509b364..ed12356d8 100644
--- a/hw/bsp/nucleo-h723zg/syscfg.yml
+++ b/hw/bsp/nucleo-h723zg/syscfg.yml
@@ -74,3 +74,8 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM12'
     TIMER_1_TIM: 'TIM13'
     TIMER_2_TIM: 'TIM14'
+
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: stflash
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+    JLINK_TARGET: STM32H723ZG


[mynewt-core] 03/11: hw/bsp: nucleo-f103rb add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 125e6f22ff0a5af5bfeb13fd6174209b80c6b177
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Fri May 26 14:43:18 2023 +0200

    hw/bsp: nucleo-f103rb add syscfg selectable download script
---
 hw/bsp/nucleo-f103rb/bsp.yml                    |  4 +--
 hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.cmd    | 22 --------------
 hw/bsp/nucleo-f103rb/nucleo_f103rb_download.cmd | 22 --------------
 hw/bsp/nucleo-f103rb/nucleo_f103rb_download.sh  | 39 -------------------------
 hw/bsp/nucleo-f103rb/pkg.yml                    |  1 +
 hw/bsp/nucleo-f103rb/syscfg.yml                 |  6 ++++
 6 files changed, 8 insertions(+), 86 deletions(-)

diff --git a/hw/bsp/nucleo-f103rb/bsp.yml b/hw/bsp/nucleo-f103rb/bsp.yml
index 2e13b5afb..d124973da 100644
--- a/hw/bsp/nucleo-f103rb/bsp.yml
+++ b/hw/bsp/nucleo-f103rb/bsp.yml
@@ -28,10 +28,8 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - "hw/bsp/nucleo-f103rb/boot-nucleo_f103rb.ld"
     - "@apache-mynewt-core/hw/mcu/stm/stm32f1xx/stm32f103.ld"
-bsp.downloadscript: "hw/bsp/nucleo-f103rb/nucleo_f103rb_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/nucleo-f103rb/nucleo_f103rb_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.cmd"
 
 bsp.flash_map:
     areas:
diff --git a/hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.cmd b/hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nucleo-f103rb/nucleo_f103rb_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/nucleo-f103rb/nucleo_f103rb_download.cmd b/hw/bsp/nucleo-f103rb/nucleo_f103rb_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/nucleo-f103rb/nucleo_f103rb_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/nucleo-f103rb/nucleo_f103rb_download.sh b/hw/bsp/nucleo-f103rb/nucleo_f103rb_download.sh
deleted file mode 100755
index 5d6d649ab..000000000
--- a/hw/bsp/nucleo-f103rb/nucleo_f103rb_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/nucleo-f103rb/pkg.yml b/hw/bsp/nucleo-f103rb/pkg.yml
index 0e98deb41..8e97bb21d 100644
--- a/hw/bsp/nucleo-f103rb/pkg.yml
+++ b/hw/bsp/nucleo-f103rb/pkg.yml
@@ -31,3 +31,4 @@ pkg.cflags: -DSTM32F103xB
 pkg.deps:
     - "@apache-mynewt-core/hw/mcu/stm/stm32f1xx"
     - "@apache-mynewt-core/libc/baselibc"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-f103rb/syscfg.yml b/hw/bsp/nucleo-f103rb/syscfg.yml
index 41f8273a9..73b2fa62e 100644
--- a/hw/bsp/nucleo-f103rb/syscfg.yml
+++ b/hw/bsp/nucleo-f103rb/syscfg.yml
@@ -56,3 +56,9 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM2'
     TIMER_1_TIM: 'TIM3'
     TIMER_2_TIM: 'TIM4'
+
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: stflash
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+    PYOCD_TARGET: stm32f103rc
+    JLINK_TARGET: STM32F103RB


[mynewt-core] 10/11: hw/bsp: bluepill add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c2631062b0005897f3a72b77dbea4af193711eca
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Mon May 29 14:35:47 2023 +0200

    hw/bsp: bluepill add syscfg selectable download script
---
 hw/bsp/bluepill/bluepill_debug.cmd    | 22 ----------------------
 hw/bsp/bluepill/bluepill_download.cmd | 22 ----------------------
 hw/bsp/bluepill/bsp.yml               |  5 +----
 hw/bsp/bluepill/pkg.yml               |  1 +
 hw/bsp/bluepill/syscfg.yml            |  7 +++++++
 5 files changed, 9 insertions(+), 48 deletions(-)

diff --git a/hw/bsp/bluepill/bluepill_debug.cmd b/hw/bsp/bluepill/bluepill_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/bluepill/bluepill_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/bluepill/bluepill_download.cmd b/hw/bsp/bluepill/bluepill_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/bluepill/bluepill_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/bluepill/bsp.yml b/hw/bsp/bluepill/bsp.yml
index 52566d98a..74334b1fe 100644
--- a/hw/bsp/bluepill/bsp.yml
+++ b/hw/bsp/bluepill/bsp.yml
@@ -29,10 +29,8 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - 'hw/bsp/bluepill/boot-bluepill.ld'
     - '@apache-mynewt-core/hw/mcu/stm/stm32f1xx/stm32f103.ld'
-bsp.downloadscript: "hw/bsp/bluepill/bluepill_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/bluepill/bluepill_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/bluepill/bluepill_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/bluepill/bluepill_debug.cmd"
 
 bsp.flash_map:
     areas:
@@ -65,4 +63,3 @@ bsp.flash_map:
             device: 0
             offset: 0x08006000
             size: 8kB
-
diff --git a/hw/bsp/bluepill/pkg.yml b/hw/bsp/bluepill/pkg.yml
index 81cd1905b..e896576d5 100644
--- a/hw/bsp/bluepill/pkg.yml
+++ b/hw/bsp/bluepill/pkg.yml
@@ -33,3 +33,4 @@ pkg.deps:
     - '@apache-mynewt-core/hw/mcu/stm/stm32f1xx'
     - '@apache-mynewt-core/kernel/os'
     - '@apache-mynewt-core/libc/baselibc'
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/bluepill/syscfg.yml b/hw/bsp/bluepill/syscfg.yml
index 0b83d06a7..1bb32bdd8 100644
--- a/hw/bsp/bluepill/syscfg.yml
+++ b/hw/bsp/bluepill/syscfg.yml
@@ -52,3 +52,10 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM2'
     TIMER_1_TIM: 'TIM3'
     TIMER_2_TIM: 'TIM4'
+
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: openocd
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+    MYNEWT_DOWNLOADER_OPENOCD_CFG: 'repos/apache-mynewt-core/hw/bsp/bluepill/bluepill.cfg'
+    JLINK_TARGET: STM32F103C8
+    PYOCD_TARGET: stm32f103rc


[mynewt-core] 09/11: hw/bsp: black_vet6 add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 72689af13b1e81694e2a1096c40e15bf3ce0536a
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Mon May 29 12:06:51 2023 +0200

    hw/bsp: black_vet6 add syscfg selectable download script
---
 hw/bsp/black_vet6/bsp.yml                |  5 +----
 hw/bsp/black_vet6/pkg.yml                |  1 +
 hw/bsp/black_vet6/stm32f4ve_debug.cmd    | 22 ------------------
 hw/bsp/black_vet6/stm32f4ve_download.cmd | 22 ------------------
 hw/bsp/black_vet6/stm32f4ve_download.sh  | 38 --------------------------------
 hw/bsp/black_vet6/syscfg.yml             |  5 +++++
 6 files changed, 7 insertions(+), 86 deletions(-)

diff --git a/hw/bsp/black_vet6/bsp.yml b/hw/bsp/black_vet6/bsp.yml
index 6978c8ee8..9ffb33f7c 100644
--- a/hw/bsp/black_vet6/bsp.yml
+++ b/hw/bsp/black_vet6/bsp.yml
@@ -28,10 +28,8 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - "hw/bsp/black_vet6/boot-stm32f4ve.ld"
     - "@apache-mynewt-core/hw/mcu/stm/stm32f4xx/stm32f407.ld"
-bsp.downloadscript: "hw/bsp/black_vet6/stm32f4ve_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/black_vet6/stm32f4ve_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/black_vet6/stm32f4ve_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/black_vet6/stm32f4ve_debug.cmd"
 
 bsp.flash_map:
     areas:
@@ -66,4 +64,3 @@ bsp.flash_map:
             device: 1
             offset: 0x00040000
             size: 32kB
-
diff --git a/hw/bsp/black_vet6/pkg.yml b/hw/bsp/black_vet6/pkg.yml
index 55ce798c5..2ca5449d3 100644
--- a/hw/bsp/black_vet6/pkg.yml
+++ b/hw/bsp/black_vet6/pkg.yml
@@ -37,3 +37,4 @@ pkg.deps:
     - "@apache-mynewt-core/hw/mcu/stm/stm32f4xx"
     - "@apache-mynewt-core/libc/baselibc"
     - "@apache-mynewt-core/hw/drivers/flash/spiflash"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/black_vet6/stm32f4ve_debug.cmd b/hw/bsp/black_vet6/stm32f4ve_debug.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/black_vet6/stm32f4ve_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/black_vet6/stm32f4ve_download.cmd b/hw/bsp/black_vet6/stm32f4ve_download.cmd
deleted file mode 100755
index 96f0b2605..000000000
--- a/hw/bsp/black_vet6/stm32f4ve_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/black_vet6/stm32f4ve_download.sh b/hw/bsp/black_vet6/stm32f4ve_download.sh
deleted file mode 100755
index 5b8c6ca06..000000000
--- a/hw/bsp/black_vet6/stm32f4ve_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.
-#
-
-#  - 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/black_vet6/syscfg.yml b/hw/bsp/black_vet6/syscfg.yml
index eaf250144..1991b7192 100644
--- a/hw/bsp/black_vet6/syscfg.yml
+++ b/hw/bsp/black_vet6/syscfg.yml
@@ -110,3 +110,8 @@ syscfg.vals:
     TIMER_2_TIM: 'TIM4'
 
     USB_DP_HAS_EXTERNAL_PULL_UP: 1
+
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: stflash
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+    JLINK_TARGET: STM32F407VE


[mynewt-core] 08/11: hw/bsp: p-nucleo-wb55-usbdongle add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 89a8da0d3c672840c582df7894c8ce4af6417123
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Mon May 29 11:13:44 2023 +0200

    hw/bsp: p-nucleo-wb55-usbdongle add syscfg selectable download script
---
 hw/bsp/p-nucleo-wb55-usbdongle/bsp.yml             |  2 +-
 .../p-nucleo-wb55_download.sh                      | 41 ----------------------
 hw/bsp/p-nucleo-wb55-usbdongle/pkg.yml             |  1 +
 hw/bsp/p-nucleo-wb55-usbdongle/syscfg.yml          |  5 +++
 4 files changed, 7 insertions(+), 42 deletions(-)

diff --git a/hw/bsp/p-nucleo-wb55-usbdongle/bsp.yml b/hw/bsp/p-nucleo-wb55-usbdongle/bsp.yml
index 0dfd8993e..6f4871030 100644
--- a/hw/bsp/p-nucleo-wb55-usbdongle/bsp.yml
+++ b/hw/bsp/p-nucleo-wb55-usbdongle/bsp.yml
@@ -28,7 +28,7 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - "hw/bsp/p-nucleo-wb55-usbdongle/boot-p-nucleo-wb55.ld"
     - "@apache-mynewt-core/hw/mcu/stm/stm32wbxx/stm32wb55.ld"
-bsp.downloadscript: "hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_debug.sh"
 
 bsp.flash_map:
diff --git a/hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_download.sh b/hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_download.sh
deleted file mode 100755
index 44124fa7a..000000000
--- a/hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_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/common.sh
-common_file_to_load
-
-if [ "$BOOT_LOADER" -o "$MFG_IMAGE" ]; then
-  STM32_Programmer_CLI -c port=usb1 -d $FILE_NAME $FLASH_OFFSET
-else
-  cp $FILE_NAME $FILE_NAME.bin
-  STM32_Programmer_CLI -c port=usb1 -d $FILE_NAME.bin $FLASH_OFFSET
-  rm $FILE_NAME.bin
-fi
diff --git a/hw/bsp/p-nucleo-wb55-usbdongle/pkg.yml b/hw/bsp/p-nucleo-wb55-usbdongle/pkg.yml
index 1be11962a..8ec45722f 100644
--- a/hw/bsp/p-nucleo-wb55-usbdongle/pkg.yml
+++ b/hw/bsp/p-nucleo-wb55-usbdongle/pkg.yml
@@ -36,3 +36,4 @@ pkg.cflags.HARDFLOAT:
 pkg.deps:
     - "@apache-mynewt-core/hw/mcu/stm/stm32wbxx"
     - "@apache-mynewt-core/libc/baselibc"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/p-nucleo-wb55-usbdongle/syscfg.yml b/hw/bsp/p-nucleo-wb55-usbdongle/syscfg.yml
index ba409fd84..c3ec05121 100644
--- a/hw/bsp/p-nucleo-wb55-usbdongle/syscfg.yml
+++ b/hw/bsp/p-nucleo-wb55-usbdongle/syscfg.yml
@@ -80,3 +80,8 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM2'
     TIMER_1_TIM: 'TIM16'
     TIMER_2_TIM: 'TIM17'
+
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: stflash
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+    JLINK_TARGET: STM32WB55RG


[mynewt-core] 05/11: hw/bsp: nucleo-l073rz add syscfg selectable download script

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 748d060e1ed10dcf89bcdfb184f8d338890bea6c
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Fri May 26 16:24:29 2023 +0200

    hw/bsp: nucleo-l073rz add syscfg selectable download script
---
 hw/bsp/nucleo-l073rz/bsp.yml                   |  2 +-
 hw/bsp/nucleo-l073rz/nucleo-l073rz_download.sh | 39 --------------------------
 hw/bsp/nucleo-l073rz/pkg.yml                   |  1 +
 hw/bsp/nucleo-l073rz/syscfg.yml                |  5 ++++
 4 files changed, 7 insertions(+), 40 deletions(-)

diff --git a/hw/bsp/nucleo-l073rz/bsp.yml b/hw/bsp/nucleo-l073rz/bsp.yml
index 1facf525b..1c0852cb6 100644
--- a/hw/bsp/nucleo-l073rz/bsp.yml
+++ b/hw/bsp/nucleo-l073rz/bsp.yml
@@ -28,7 +28,7 @@ bsp.linkerscript:
 bsp.linkerscript.BOOT_LOADER.OVERWRITE:
     - "hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld"
     - "@apache-mynewt-core/hw/mcu/stm/stm32l0xx/stm32l073.ld"
-bsp.downloadscript: "hw/bsp/nucleo-l073rz/nucleo-l073rz_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/nucleo-l073rz/nucleo-l073rz_debug.sh"
 
 bsp.flash_map:
diff --git a/hw/bsp/nucleo-l073rz/nucleo-l073rz_download.sh b/hw/bsp/nucleo-l073rz/nucleo-l073rz_download.sh
deleted file mode 100755
index 5d6d649ab..000000000
--- a/hw/bsp/nucleo-l073rz/nucleo-l073rz_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/nucleo-l073rz/pkg.yml b/hw/bsp/nucleo-l073rz/pkg.yml
index 2f13157a0..a8d8b8648 100644
--- a/hw/bsp/nucleo-l073rz/pkg.yml
+++ b/hw/bsp/nucleo-l073rz/pkg.yml
@@ -32,3 +32,4 @@ pkg.cflags:
 pkg.deps:
     - "@apache-mynewt-core/hw/mcu/stm/stm32l0xx"
     - "@apache-mynewt-core/libc/baselibc"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/nucleo-l073rz/syscfg.yml b/hw/bsp/nucleo-l073rz/syscfg.yml
index 01cabc90c..07dc322ed 100644
--- a/hw/bsp/nucleo-l073rz/syscfg.yml
+++ b/hw/bsp/nucleo-l073rz/syscfg.yml
@@ -74,3 +74,8 @@ syscfg.vals:
     TIMER_0_TIM: 'TIM2'
     TIMER_1_TIM: 'TIM3'
     TIMER_2_TIM: 'TIM21'
+
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: stflash
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x08000000
+    JLINK_TARGET: STM32L073RZ


[mynewt-core] 04/11: hw/bsp: nucleo-l073rz adjust bsp flash map to fit the bootloader

Posted by je...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 277a15ac94a97dbc78365e0eaf225f5c794dbc46
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Fri May 26 16:18:16 2023 +0200

    hw/bsp: nucleo-l073rz adjust bsp flash map to fit the bootloader
    
    The bootloader size was exceeding flash area, thus the flash area needed to be increased.
    Image scratch was not needed in case of this BSP, so its size has been decreased.
---
 hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld | 2 +-
 hw/bsp/nucleo-l073rz/bsp.yml               | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld b/hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld
index fe44cee4a..b18ead5a9 100644
--- a/hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld
+++ b/hw/bsp/nucleo-l073rz/boot-nucleo-l073rz.ld
@@ -20,7 +20,7 @@
 /* Linker script to configure memory regions. */
 MEMORY
 {
-  FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 16K
+  FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 20K
   RAM (rwx)  : ORIGIN = 0x20000000, LENGTH = 20K
 }
 
diff --git a/hw/bsp/nucleo-l073rz/bsp.yml b/hw/bsp/nucleo-l073rz/bsp.yml
index cc736679a..1facf525b 100644
--- a/hw/bsp/nucleo-l073rz/bsp.yml
+++ b/hw/bsp/nucleo-l073rz/bsp.yml
@@ -37,7 +37,7 @@ bsp.flash_map:
         FLASH_AREA_BOOTLOADER:
             device: 0
             offset: 0x08000000
-            size: 16kB
+            size: 20kB
         FLASH_AREA_IMAGE_0:
             device: 0
             offset: 0x08008000
@@ -48,14 +48,14 @@ bsp.flash_map:
             size: 72kB
         FLASH_AREA_IMAGE_SCRATCH:
             device: 0
-            offset: 0x0802c000
-            size: 16kB
+            offset: 0x08005C00
+            size: 1kB
 
         # User areas.
         FLASH_AREA_REBOOT_LOG:
             user_id: 0
             device: 0
-            offset: 0x08004000
+            offset: 0x0802c000
             size: 8kB
         FLASH_AREA_NFFS:
             user_id: 1