mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 16:00:57 +00:00
openocd: separate stlink configs deprecated - now combined
This commit is contained in:
parent
a36d0c0fbe
commit
b50f1e0b89
@ -23,9 +23,8 @@ BITCOIN_ONLY ?= 0
|
||||
TREZOR_MODEL ?= T
|
||||
TREZOR_MEMPERF ?= 0
|
||||
|
||||
STLINK_VER ?= v2
|
||||
OPENOCD = openocd -f interface/stlink-$(STLINK_VER).cfg -c "transport select hla_swd" -f target/stm32f4x.cfg
|
||||
OPENOCD_T1 = openocd -f interface/stlink-$(STLINK_VER).cfg -c "transport select hla_swd" -f target/stm32f2x.cfg
|
||||
OPENOCD = openocd -f interface/stlink.cfg -c "transport select hla_swd" -f target/stm32f4x.cfg
|
||||
OPENOCD_T1 = openocd -f interface/stlink.cfg -c "transport select hla_swd" -f target/stm32f2x.cfg
|
||||
|
||||
BOARDLOADER_START = 0x08000000
|
||||
BOOTLOADER_START = 0x08020000
|
||||
|
@ -46,8 +46,7 @@ Use `make upload` to upload the firmware to a production device. Do not forget t
|
||||
|
||||
## Flashing
|
||||
|
||||
For flashing firmware to blank device (without bootloader) use `make flash`,
|
||||
or `make flash STLINK_VER=v2-1` if using a ST-LINK/V2.1 interface.
|
||||
For flashing firmware to blank device (without bootloader) use `make flash`.
|
||||
You need to have OpenOCD installed.
|
||||
|
||||
## Building in debug mode
|
||||
|
@ -28,7 +28,8 @@ OBJCOPY := $(PREFIX)objcopy
|
||||
OBJDUMP := $(PREFIX)objdump
|
||||
AR := $(PREFIX)ar
|
||||
AS := $(PREFIX)as
|
||||
OPENOCD := openocd -f interface/stlink-v2.cfg -c "transport select hla_swd" -f target/stm32f2x.cfg
|
||||
OPENOCD := openocd -f interface/stlink.cfg -c "transport select hla_swd" -f target/stm32f2x.cfg
|
||||
|
||||
GDB := $(PREFIX)gdb --nx -ex 'set remotetimeout unlimited' -ex 'set confirm off' -ex 'target remote 127.0.0.1:3333' -ex 'monitor reset halt'
|
||||
|
||||
CONFFLAG ?= -DCONFIDENTIAL='__attribute__((section("confidential")))'
|
||||
|
Loading…
Reference in New Issue
Block a user