diff --git a/flash.sh b/flash.sh new file mode 100755 index 00000000..035871e6 --- /dev/null +++ b/flash.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e + +BUILD_DIR=vendor/micropython/stmhal/build-TREZORV2 + +st-flash write $BUILD_DIR/firmware0.bin 0x8000000 +sleep 0.1 +st-flash write $BUILD_DIR/firmware1.bin 0x8020000 diff --git a/gdb.sh b/gdb.sh new file mode 100755 index 00000000..abedb81b --- /dev/null +++ b/gdb.sh @@ -0,0 +1,4 @@ +#!/bin/bash +BUILD_DIR=vendor/micropython/stmhal/build-TREZORV2 + +gdb $BUILD_DIR/firmware.elf -ex 'target remote localhost:3333' diff --git a/openocd.sh b/openocd.sh new file mode 100755 index 00000000..e03191d4 --- /dev/null +++ b/openocd.sh @@ -0,0 +1,2 @@ +#!/bin/bash +openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg diff --git a/vendor/micropython b/vendor/micropython index 9854beef..ab107288 160000 --- a/vendor/micropython +++ b/vendor/micropython @@ -1 +1 @@ -Subproject commit 9854beef6bb9cecc92927cb2c419998e8502bda4 +Subproject commit ab1072883ffbac8610f53e75a826f6fac9780106