add scripts for st-flash, openocd and gdb
This commit is contained in:
parent
be3cd79bc8
commit
0ebb25c82c
|
@ -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
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
BUILD_DIR=vendor/micropython/stmhal/build-TREZORV2
|
||||||
|
|
||||||
|
gdb $BUILD_DIR/firmware.elf -ex 'target remote localhost:3333'
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9854beef6bb9cecc92927cb2c419998e8502bda4
|
Subproject commit ab1072883ffbac8610f53e75a826f6fac9780106
|
Loading…
Reference in New Issue