1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-15 10:58:09 +00:00
trezor-firmware/legacy/imhex/t1_firmware_trezor_bin_v2.hexpat

16 lines
336 B
Plaintext
Raw Normal View History

#pragma base_address 0x8010000
#include "t1_firmware.pat"
u32 V2_HEADER_BASE = base();
u32 VTOR = V2_HEADER_BASE + 0x400;
#define FW_MAGIC_NEW "TRZF"
ImageHeader_v2 header_v2 @ V2_HEADER_BASE;
VectorTable vector_table @ VTOR;
std::assert(header_v2.magic_new == FW_MAGIC_NEW, "Wrong NEW magic, expected TRFZ at start");