From b91a6a6f11e014f96c91e5a67bef805349de7b43 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sat, 14 Jun 2025 10:46:32 -0400 Subject: Hexify the family ID Makes it a little easier for me to manually inspect binaries and figure out their targets. --- src/host.rs | 20 ++++++++++---------- src/target.rs | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/host.rs b/src/host.rs index 902208a..18b9b62 100644 --- a/src/host.rs +++ b/src/host.rs @@ -796,16 +796,16 @@ impl Family { /// any hard-coded values. const fn id(self) -> u32 { match self { - Family::Imxrt1010 => 1010, - Family::Imxrt1015 => 1015, - Family::Imxrt1020 => 1020, - Family::Imxrt1040 => 1040, - Family::Imxrt1050 => 1050, - Family::Imxrt1060 => 1060, - Family::Imxrt1064 => 1064, - Family::Imxrt1160 => 1160, - Family::Imxrt1170 => 1170, - Family::Imxrt1180 => 1180, + Family::Imxrt1010 => 0x1010, + Family::Imxrt1015 => 0x1015, + Family::Imxrt1020 => 0x1020, + Family::Imxrt1040 => 0x1040, + Family::Imxrt1050 => 0x1050, + Family::Imxrt1060 => 0x1060, + Family::Imxrt1064 => 0x1064, + Family::Imxrt1160 => 0x1160, + Family::Imxrt1170 => 0x1170, + Family::Imxrt1180 => 0x1180, } } /// How many FlexRAM banks are available? diff --git a/src/target.rs b/src/target.rs index 81cbed0..90b89c3 100644 --- a/src/target.rs +++ b/src/target.rs @@ -41,10 +41,10 @@ global_asm! {r#" __pre_init: ldr r0, =__imxrt_rt_v0.2 @ Need to know which chip family we're initializing. - ldr r1, =1180 + ldr r1, =0x1180 cmp r0, r1 @ Is this an 1180? beq 1180f - ldr r1, =1100 + ldr r1, =0x1100 cmp r0, r1 @ Is this an 1160 or 1170? # Disable RTWODOG3. -- cgit v1.2.3