From 51d27826a324acdeb80cd0164b7ba7e1124c4c49 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Wed, 7 Jun 2023 23:36:33 +0300 Subject: [PATCH] Add flashing script --- demos/STM32/RT-AT32F435-ARTERY144/openocd_artery.sh | 2 +- .../STM32/RT-AT32F435-ARTERY144/openocd_artery_flash.sh | 9 ++++++++- demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_rtos.sh | 3 --- 3 files changed, 9 insertions(+), 5 deletions(-) delete mode 100644 demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_rtos.sh diff --git a/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery.sh b/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery.sh index 56ba5bfd6c..083b787bc6 100755 --- a/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery.sh +++ b/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery.sh @@ -1,3 +1,3 @@ #!/bin/sh -openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg $* +openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg -c '$_TARGETNAME configure -rtos auto' $* diff --git a/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_flash.sh b/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_flash.sh index 81e4eea653..01c963f5e4 100755 --- a/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_flash.sh +++ b/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_flash.sh @@ -1 +1,8 @@ -./openocd_artery.sh -c "program build/ch.bin verify reset exit 0x08000000" +#!/bin/sh +openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg \ + -c "init" \ + -c "halt" \ + -c "flash write_image erase build/ch.elf" \ + -c "flash verify_image build/ch.elf" \ + -c "reset" \ + -c "exit" diff --git a/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_rtos.sh b/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_rtos.sh deleted file mode 100644 index 083b787bc6..0000000000 --- a/demos/STM32/RT-AT32F435-ARTERY144/openocd_artery_rtos.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg -c '$_TARGETNAME configure -rtos auto' $* -