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:
parent
7c11dec7f6
commit
4bed278e80
@ -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
|
||||||
|
|
||||||
|
7
legacy/bootloader/bootloader_flash.jlink
Normal file
7
legacy/bootloader/bootloader_flash.jlink
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
device stm32f205rg
|
||||||
|
if swd
|
||||||
|
speed auto
|
||||||
|
loadbin bootloader/bootloader.bin 0x8000000
|
||||||
|
r
|
||||||
|
g
|
||||||
|
exit
|
7
legacy/firmware/firmware_flash.jlink
Normal file
7
legacy/firmware/firmware_flash.jlink
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
device stm32f205rg
|
||||||
|
if swd
|
||||||
|
speed auto
|
||||||
|
loadbin firmware/trezor.bin 0x08010000
|
||||||
|
r
|
||||||
|
g
|
||||||
|
exit
|
Loading…
Reference in New Issue
Block a user