From c4ee315a20e41c234d2d0f7ca3ed7e37a09b9d32 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sun, 9 Nov 2025 11:53:17 -0500 Subject: Add builder API for FlexRAM bank layout The layout, or assignment of FlexRAM banks to memory regions, is more precise than the count. When a user specifies the count, we still apply the same layout as we always have. But now, by default, we prefer the fuse layout for users who have made no choice. This commit supports RAM loading with probe-rs. After probe-rs resets the MCU and uses the fuse FlexRAM layout, firmware can perfectly match that layout without disrupting the data already copied into RAM by the debugger. --- tests/inspect_elf.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/inspect_elf.rs b/tests/inspect_elf.rs index f04f8f5..7f25b2a 100644 --- a/tests/inspect_elf.rs +++ b/tests/inspect_elf.rs @@ -667,10 +667,7 @@ fn imxrt1170evk_cm7() { }, binary.fcb().unwrap() ); - assert_eq!( - binary.flexram_config().unwrap(), - 0b1111111111111111_1010101010101010 - ); + assert_eq!(binary.flexram_config().unwrap(), 0xFFAAFFAA); let ivt = binary.ivt().unwrap(); assert_eq!(ivt.magic_header, 0x402000D1); @@ -790,10 +787,7 @@ fn imxrt1170evk_cm7_nonboot() { assert_eq!(binary.symbol_value("__dcd_end"), None); assert_eq!(binary.symbol_value("__dcd"), None); assert!(binary.fcb().is_err()); - assert_eq!( - binary.flexram_config().unwrap(), - 0b1111111111111111_1010101010101010 - ); + assert_eq!(binary.flexram_config().unwrap(), 0xFFAAFFAA); assert!( binary.ivt().is_err(), -- cgit v1.2.3