mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 03:18:09 +00:00
add scripts for st-flash, openocd and gdb
This commit is contained in:
parent
be3cd79bc8
commit
0ebb25c82c
8
flash.sh
Executable file
8
flash.sh
Executable 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
4
gdb.sh
Executable 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
2
openocd.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg
|
2
vendor/micropython
vendored
2
vendor/micropython
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 9854beef6bb9cecc92927cb2c419998e8502bda4
|
Subproject commit ab1072883ffbac8610f53e75a826f6fac9780106
|
Loading…
Reference in New Issue
Block a user