Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

  1. Compile the firmware for the target with -m d002 and --bootloader-devel
xtask build boardloader -m d002 --bootloader-devel
xtask build bootloader -m d002 --bootlaoder-devel
xtask build firmware -m d002 --bootloader-devel
  1. Ensure that TrustZone is enabled on the DISC2 device, as explained here.

  2. Connect the DISC2 ST-Link to the PC using a micro-USB cable (connector CN5).

  3. Erase the DISC2 flash.

xtask flash-erase -m d002
  1. Flash the freshly compiled firmware from step 1.
xtask flash boardloader -m d002
xtask flash bootloader -m d002
xtask flash firmware -m d002
  1. Reset the device (you may need to do this a couple of times) until it boots up.