1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-15 19:08:07 +00:00

add scripts for st-flash, openocd and gdb

This commit is contained in:
Pavol Rusnak 2016-03-29 17:58:04 +02:00
parent be3cd79bc8
commit 0ebb25c82c
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 15 additions and 1 deletions

8
flash.sh Executable file
View File

@ -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

4
gdb.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
BUILD_DIR=vendor/micropython/stmhal/build-TREZORV2
gdb $BUILD_DIR/firmware.elf -ex 'target remote localhost:3333'

2
openocd.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg

2
vendor/micropython vendored

@ -1 +1 @@
Subproject commit 9854beef6bb9cecc92927cb2c419998e8502bda4
Subproject commit ab1072883ffbac8610f53e75a826f6fac9780106