1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

feat(legacy): Ability to flash bootloader and firmware via JLink

[no changelog]
This commit is contained in:
Ondrej Mikle 2022-09-15 16:54:23 +02:00
parent 7c11dec7f6
commit 4bed278e80
3 changed files with 23 additions and 1 deletions

View File

@ -30,7 +30,8 @@ libtrezor.a:
@printf " AR $@\n" @printf " AR $@\n"
$(Q)$(AR) rcs $@ $^ $(Q)$(AR) rcs $@ $^
.PHONY: vendor build_unix test_emu test_emu_ui test_emu_ui_record .PHONY: vendor build_unix test_emu test_emu_ui test_emu_ui_record \
flash_firmware_jlink flash_bootloader_jlink
vendor: vendor:
git submodule update --init --recursive git submodule update --init --recursive
@ -47,3 +48,10 @@ test_emu_ui: ## run ui integration tests
test_emu_ui_record: ## record and hash screens for ui integration tests test_emu_ui_record: ## record and hash screens for ui integration tests
./script/test --ui=record --ui-check-missing $(TESTOPTS) ./script/test --ui=record --ui-check-missing $(TESTOPTS)
flash_firmware_jlink:
JLinkExe -nogui 1 -commanderscript firmware/firmware_flash.jlink
flash_bootloader_jlink:
JLinkExe -nogui 1 -commanderscript bootloader/bootloader_flash.jlink

View File

@ -0,0 +1,7 @@
device stm32f205rg
if swd
speed auto
loadbin bootloader/bootloader.bin 0x8000000
r
g
exit

View File

@ -0,0 +1,7 @@
device stm32f205rg
if swd
speed auto
loadbin firmware/trezor.bin 0x08010000
r
g
exit