From b319d62052d6b553b135837ff8c35ee0c8d475bf Mon Sep 17 00:00:00 2001 From: Sherif A Abdou Date: Mon, 3 Feb 2025 10:22:32 -0500 Subject: Added in_flash RuntimeBuilder constructor Applications linked through this builder can be placed in a flash reservation. You'll need some other software to launch these programs, since they lack the boot header required by the NXP boot ROM. --- src/host/imxrt-boot-header-1180.x | 3 +++ src/host/imxrt-boot-header.x | 3 +++ src/host/imxrt-link.x | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/host') diff --git a/src/host/imxrt-boot-header-1180.x b/src/host/imxrt-boot-header-1180.x index 101725a..cf93e7c 100644 --- a/src/host/imxrt-boot-header-1180.x +++ b/src/host/imxrt-boot-header-1180.x @@ -101,4 +101,7 @@ SECTIONS } > FLASH } +ASSERT((__dcd_end - __dcd_start) % 4 == 0, " +ERROR(imxrt-rt): .dcd (Device Configuration Data) size must be a multiple of 4 bytes."); + /* ===--- End imxrt-boot-header-1180.x ---=== */ diff --git a/src/host/imxrt-boot-header.x b/src/host/imxrt-boot-header.x index 3f33603..165e858 100644 --- a/src/host/imxrt-boot-header.x +++ b/src/host/imxrt-boot-header.x @@ -78,4 +78,7 @@ SECTIONS } > FLASH } +ASSERT((__dcd_end - __dcd_start) % 4 == 0, " +ERROR(imxrt-rt): .dcd (Device Configuration Data) size must be a multiple of 4 bytes."); + /* ===--- End imxrt-boot-header.x ---=== */ diff --git a/src/host/imxrt-link.x b/src/host/imxrt-link.x index dfe7355..7fcd76c 100644 --- a/src/host/imxrt-link.x +++ b/src/host/imxrt-link.x @@ -203,8 +203,6 @@ Dynamic relocations are not supported. If you are linking to C code compiled usi the 'cc' crate then modify your build script to compile the C code _without_ the -fPIC flag. See the documentation of the `cc::Build.pic` method for details."); -ASSERT((__dcd_end - __dcd_start) % 4 == 0, " -ERROR(imxrt-rt): .dcd (Device Configuration Data) size must be a multiple of 4 bytes."); /* Do not exceed this mark in the error messages above | */ /* ===--- End imxrt-link.x ---=== */ -- cgit v1.2.3