aboutsummaryrefslogtreecommitdiff
path: root/src/target.rs
diff options
context:
space:
mode:
authorIan McIntyre <me@mciantyre.dev>2025-06-14 10:27:32 -0400
committerIan McIntyre <me@mciantyre.dev>2025-09-16 07:48:07 -0400
commite244012738c0d431ff6c791325f2d3f9a3dfdeb0 (patch)
tree5c3f648957c65ef78d47f71d3e42af134c0d04f6 /src/target.rs
parent9728ac5305cfe259115858f0bc49985a0ad7cec4 (diff)
Catch target-host version mismatch
Attach the version information in a symbol that's generated by the host. Then, expect the same symbol exists in the embedded target. If the linker can't resolve this, then the host and target should be incompatible. I'm overloading the __imxrt_family symbol for this.
Diffstat (limited to 'src/target.rs')
-rw-r--r--src/target.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.rs b/src/target.rs
index d0e2223..697e591 100644
--- a/src/target.rs
+++ b/src/target.rs
@@ -40,7 +40,7 @@ global_asm! {r#"
.cfi_startproc
__pre_init:
- ldr r0, =__imxrt_family @ Need to know which chip family we're initializing.
+ ldr r0, =__imxrt_rt_v0.2 @ Need to know which chip family we're initializing.
ldr r1, =1180
cmp r0, r1 @ Is this an 1180?
beq flexram_1180