You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KED/run.sh

20 lines
308 B

#!/bin/bash
#BSL_TO_USE="nucleo_f042k6"
BSL_TO_USE=$1
FILE=build/
if [ -d "$FILE" ];then
rm -r build
#echo Cmake build directory exists
cmake -S . -B build/ -DBSL_USED=$BSL_TO_USE
else
cmake -S . -B build/ -DBSL_USED=$BSL_TO_USE
fi
cd $FILE
make -j4
st-flash write refOvenTest.bin 0x08000000
cd ..