From 3acc17a7dceefc9f5fb7aac8df3e3dca8f2aa9a0 Mon Sep 17 00:00:00 2001 From: "@CarlWachter" Date: Sun, 7 Jan 2024 13:48:58 +0100 Subject: [PATCH] Added batch/shell scripts for flashing --- flash.bat | 12 ++++++++++++ flash.sh | 0 2 files changed, 12 insertions(+) create mode 100644 flash.bat create mode 100644 flash.sh diff --git a/flash.bat b/flash.bat new file mode 100644 index 0000000..30848cd --- /dev/null +++ b/flash.bat @@ -0,0 +1,12 @@ +@echo off + +REM Check if the program name is provided as an argument +if "%~1"=="" ( + echo Please provide the program name as an argument. + exit /b 1 +) + +REM Execute the commands +make -j8 all -C .\Debug +STM32_Programmer_CLI.exe -c port=SWD freq=4000 -e all +STM32_Programmer_CLI.exe -c port=SWD freq=4000 -w .\Debug\%1.elf 0x08000000 diff --git a/flash.sh b/flash.sh new file mode 100644 index 0000000..e69de29