diff --git a/artery_f435.cfg b/artery_f435.cfg index ed3d583..3da76f8 100644 --- a/artery_f435.cfg +++ b/artery_f435.cfg @@ -3,11 +3,11 @@ # http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF259090 # -source [find interface/stlink.cfg] +source [find interface/atlink.cfg] -transport select hla_swd +#transport select hla_swd -source [find target/at32f435xx.cfg] +source [find target/at32f435xM.cfg] #reset_config trst_only #reset_config srst_only diff --git a/openocd b/openocd index 47cf1f1..8d3adf2 100755 Binary files a/openocd and b/openocd differ diff --git a/start.sh b/start.sh index 35e14b5..97dc00c 100755 --- a/start.sh +++ b/start.sh @@ -1 +1 @@ -openocd -s .//scripts -f .//artery_f435.cfg -c init -c "reset halt" -c "flash erase_sector 0 0 last" -c "reset halt" -c "flash erase_sector 1 0 last" -c "flash write_bank 0 .//firmware//boot.xfsb 0x00000000" -c "flash write_bank 0 .//firmware//module1.xfsb 0x00010000" -c "flash write_bank 1 .//firmware//module2.xfsb 0x00030000" -c "reset" -c shutdown \ No newline at end of file +./openocd -s .//scripts -f .//artery_f435.cfg -c init -c "reset halt" -c "flash erase_sector 0 0 last" -c "reset halt" -c "flash erase_sector 1 0 last" -c "flash write_bank 0 .//firmware//boot.xfsb 0x00000000" -c "flash write_bank 0 .//firmware//module1.xfsb 0x00010000" -c "flash write_bank 1 .//firmware//module2.xfsb 0x00030000" -c "reset" -c shutdown \ No newline at end of file