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 <wojciech.pietraszew...@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