From ea60b60f3ff579cd175abecde49d2d9397420dc0 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sat, 21 Nov 2026 13:39:55 -0500 Subject: Prototype secondary core support Haven't tested the included examples on hardware. It's just here so I can define an inspect_elf test. Out of tree, there's a basic example on an 1170EVK. --- src/target.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/target.rs') diff --git a/src/target.rs b/src/target.rs index 5e298e6..5cf6215 100644 --- a/src/target.rs +++ b/src/target.rs @@ -92,6 +92,12 @@ global_asm! {r#" .endm __pre_init: + # Are we the secondary core? If so, only + # perform the section copies. + ldr r0, =__imxrt_rt_core + cmp r0, #0 + bne 1000f + ldr r0, =__imxrt_rt_v0.2 @ Need to know which chip family we're initializing. ldr r1, =0x1180 cmp r0, r1 @ Is this an 1180? -- cgit v1.2.3