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 9db0b59a753bc13a838cc2c5381c42ac8a7af338 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Fri May 19 14:11:59 2023 +0200 hw/scripts: pyocd fix for repo applications When pyocd is used to flash device is checks if file to flash ends with @<address>. If @ is found in file name it tries to use remaining string as flash address. For mcuboot or other applications that are in mynewt-core or nimble it would lead to pyocd exception since "mcuboot" can't be converted to number. To fix this -a argument that was used to specify load address is removed and (possible) second @ with FLASH_OFFSET is appended to file name for pycd sake Signed-off-by: Jerzy Kasenberg <[email protected]> --- hw/scripts/pyocd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scripts/pyocd.sh b/hw/scripts/pyocd.sh index cf216b147..a75df51a5 100755 --- a/hw/scripts/pyocd.sh +++ b/hw/scripts/pyocd.sh @@ -54,7 +54,7 @@ pyocd_load () { echo "Downloading" $FILE_NAME "to" $FLASH_OFFSET - pyocd flash -a $FLASH_OFFSET -e sector -M $CONNECTION_MODE -t $TARGET $FILE_NAME --format bin + pyocd flash -e sector -M $CONNECTION_MODE -t $TARGET $FILE_NAME@$FLASH_OFFSET --format bin if [ $? -ne 0 ]; then exit 1 fi
