mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 14:58:09 +00:00
870 B
870 B
DISC 2
DISC2 is an evaluation board STM32U5G9J used for firmware development of Trezor models with the STM32U5.
The kit has accessible pins, a display, and an embedded ST-Link.
To build and flash firmware to the DISC2 target, follow these instructions:
- Compile the firmware for the target with TREZOR_MODEL=DISC2 and BOOTLOADER_DEVEL=1
cd core
TREZOR_MODEL=DISC2 BOOTLOADER_DEVEL=1 make vendor build_boardloader build_bootloader build_firmware
-
Ensure that TrustZone is enabled on the DISC2 device, as explained here.
-
Connect the DISC2 ST-Link to the PC using a micro-USB cable (connector CN5).
-
Erase the DISC2 flash.
TREZOR_MODEL=DISC2 make flash_erase
- Flash the freshly compiled firmware from step 1.
TREZOR_MODEL=DISC2 make flash
- Reset the device (you may need to do this a couple of times) until it boots up.