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

[no changelog]
pull/2520/head
Ondrej Mikle 2 years ago
parent 7c11dec7f6
commit 4bed278e80

@ -30,7 +30,8 @@ libtrezor.a:
@printf " AR $@\n"
$(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:
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
./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

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

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