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