diff options
| author | Sherif A Abdou <sherif_abdou@outlook.com> | 2025-02-03 10:22:32 -0500 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2025-03-21 20:04:24 -0400 |
| commit | b319d62052d6b553b135837ff8c35ee0c8d475bf (patch) | |
| tree | 5f8d7a6ce24bd868d58dd2396caed1f3532c3316 /src/host | |
| parent | 4ecbed698241e637a13048a199d29c142445c360 (diff) | |
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.
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/imxrt-boot-header-1180.x | 3 | ||||
| -rw-r--r-- | src/host/imxrt-boot-header.x | 3 | ||||
| -rw-r--r-- | src/host/imxrt-link.x | 2 |
3 files changed, 6 insertions, 2 deletions
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 ---=== */ |
