Updated Shell script

This commit is contained in:
@CarlWachter 2024-01-09 17:52:41 +01:00
parent 8e5bf802b0
commit 3e18644cc2

View File

@ -0,0 +1,15 @@
#!/bin/bash
# Check if the program name is provided as an argument
if [ -z "$1" ]; then
echo "Please provide the program name as an argument."
exit 1
fi
# Assign the program name to a variable
PROGRAM_NAME=$1
# 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/${PROGRAM_NAME}.elf 0x08000000 -g