Skip to content

Commit 2ce0fd6

Browse files
RobinKastberghenrikbrixandersen
authored andcommitted
soc: nxp: imxrt: MIMXRT1062 IVT needs to be FIRST
IMXRT1062 bootrom reads boothdr initial vector table from 0x60001000. In the CMAKE scatter linker scripts we put multiple sections at offset 0x1000 in the rom. In linkers other than LD, we are not guaranteed a particular order when placing these. If we specify FIRST we can count on the .ivt coming first. The other positions aren't as crucial. From IMXRT1060RM.pdf 9.7.1 > The location of the IVT is the only fixed requirement by the ROM. > The remainder or the image memory map is flexible and > is determined by the contents of the IVT. Signed-off-by: Robin Kastberg <[email protected]>
1 parent 0b7c5ad commit 2ce0fd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

soc/nxp/imxrt/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ if(CONFIG_SOC_SERIES_IMXRT10XX OR CONFIG_SOC_SERIES_IMXRT11XX)
3131
${boot_hdr_dcd_data_section}
3232
${boot_hdr_xmcd_data_section}
3333
OFFSET ${CONFIG_IMAGE_VECTOR_TABLE_OFFSET}
34+
FIRST
3435
KEEP
3536
PRIO 11
3637
)

0 commit comments

Comments
 (0)