1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

update makefile

This commit is contained in:
Pavol Rusnak 2017-02-21 11:23:50 +01:00
parent edae88932a
commit 216b60d8b6
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -74,14 +74,10 @@ testpy: ## run selected unit tests from python-trezor
cd tests ; ./run_tests_python_trezor.sh
flash: ## flash firmware using st-flash
st-flash write $(STMHAL_BUILD_DIR)/firmware0.bin 0x8000000
sleep 0.1
st-flash write $(STMHAL_BUILD_DIR)/firmware1.bin 0x8020000
st-flash write $(STMHAL_BUILD_DIR)/firmware.bin 0x8000000
flash_bl: vendor ## flash bootloader using st-flash
st-flash write $(STMHAL_BUILD_DIR)_bootloader/firmware0.bin 0x8000000
sleep 0.1
st-flash write $(STMHAL_BUILD_DIR)_bootloader/firmware1.bin 0x8020000
st-flash write $(STMHAL_BUILD_DIR)_bootloader/firmware.bin 0x8000000
openocd_flash: $(STMHAL_BUILD_DIR)/firmware.hex ## flash firmware using openocd
openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg \