<feed xmlns='http://www.w3.org/2005/Atom'>
<title>imxrt-rt/src/lib.rs, branch main</title>
<subtitle>Runtime support for i.MX RT MCUs
</subtitle>
<id>https://git.mciantyre.dev/imxrt-rs/imxrt-rt/atom?h=main</id>
<link rel='self' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/'/>
<updated>2026-10-27T15:35:22Z</updated>
<entry>
<title>Preload RAM sections, maybe, if ECC RAM is active</title>
<updated>2026-10-27T15:35:22Z</updated>
<author>
<name>Ian McIntyre</name>
<email>me@mciantyre.dev</email>
</author>
<published>2026-10-24T11:30:47Z</published>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/commit/?id=428ea28a9102d966eda5b9c39644ff66c5f59c59'/>
<id>urn:sha1:428ea28a9102d966eda5b9c39644ff66c5f59c59</id>
<content type='text'>
Blasting all of RAM with zeros would wipe ourselves away if we were
executing from RAM. It also wipes out the HAB event log, which seems to
reside in the boot ROM reservation.

We now zero individual memory regions. Similar to the copy loops,
we'll skip the loop if the VMA and LMA are equal. It looks silly to
zero things like bss when we know cortex-m's reset handler will do it;
but, the usual loop doesn't use the 64 bit writes we'd need to preload
ciphers in ITCM and OCRAM.

Tested RAM loading with probe-rs, using an 1170EVK w/ ECC RAM active.
</content>
</entry>
<entry>
<title>Restrict RAM if ECC is enabled</title>
<updated>2026-03-08T18:12:21Z</updated>
<author>
<name>Ian McIntyre</name>
<email>me@mciantyre.dev</email>
</author>
<published>2026-02-09T22:04:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/commit/?id=57978b04a7e141e0f34bc24088771a6fedea634e'/>
<id>urn:sha1:57978b04a7e141e0f34bc24088771a6fedea634e</id>
<content type='text'>
As of this commit, the RuntimeBuilder only limits the available OCRAM
if either ECC controller is enabled. It's misleading; however, it gives
users a chance to evaluate their firmware builds with the restricted
RAM regions. I'll add and test the controller setups in a later commit.

Existing tests still pass. New unit tests demonstrate the restricted
RAM behavior.
</content>
</entry>
<entry>
<title>Add section for boot ROM reservations</title>
<updated>2026-03-08T14:59:30Z</updated>
<author>
<name>Ian McIntyre</name>
<email>me@mciantyre.dev</email>
</author>
<published>2025-04-03T20:44:15Z</published>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/commit/?id=a0dd354bdc299d7d089bd4ed143f6a213852a905'/>
<id>urn:sha1:a0dd354bdc299d7d089bd4ed143f6a213852a905</id>
<content type='text'>
The boot ROM is allowed to use allocations of OCRAM as scratch space. If
you interact with the boot ROM -- using it to interact with FlexSPI, for
instance -- then you cannot also use these OCRAM regions. See the system
boot chapter in the reference manual for more info.

The boot ROM typically reserves the start of OCRAM. The size varies by
chip. This commit describes a new section, .bootrom_reservation, at the
start of OCRAM. Users are encouraged to place a MaybeUninit buffer
that's sized for your ROM's requirements.

If users don't place anything in this section, then the new directive is
a no-op. On the other hand, the section is defined before other RAM
regions, so that it takes precedence over other sections users might
want to place in OCRAM.

Tested using the runtime's test suite. I'm testing with the Teensy 4
binary, since the test suite can support features in this build. The
updated test suite shows that the linker will place the boot ROM
reservation before placing the stack, suggesting that we're respecting
section priority.
</content>
</entry>
<entry>
<title>Add builder API for FlexRAM bank layout</title>
<updated>2025-11-22T16:20:32Z</updated>
<author>
<name>Ian McIntyre</name>
<email>me@mciantyre.dev</email>
</author>
<published>2025-11-09T16:53:17Z</published>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/commit/?id=c4ee315a20e41c234d2d0f7ca3ed7e37a09b9d32'/>
<id>urn:sha1:c4ee315a20e41c234d2d0f7ca3ed7e37a09b9d32</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Document workaround for registering exceptions</title>
<updated>2025-02-22T18:04:40Z</updated>
<author>
<name>Ian McIntyre</name>
<email>me@mciantyre.dev</email>
</author>
<published>2025-02-22T18:04:40Z</published>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/commit/?id=81b2043a235375a31468d562cea2a301d2bb9449'/>
<id>urn:sha1:81b2043a235375a31468d562cea2a301d2bb9449</id>
<content type='text'>
Given the way this package abuses cortex-m-rt, it's not immediately
obvious how to register a Cortex-M exception handler with the
`#[exception]` macro. This commit documents and demonstrates the
workaround I use.
</content>
</entry>
<entry>
<title>Add imxrt1160 target support</title>
<updated>2025-02-09T00:14:33Z</updated>
<author>
<name>Ian McIntyre</name>
<email>me@mciantyre.dev</email>
</author>
<published>2025-01-04T22:21:38Z</published>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/commit/?id=9aa3f9434740dc7552cfe86e8c33cbf5d6affca4'/>
<id>urn:sha1:9aa3f9434740dc7552cfe86e8c33cbf5d6affca4</id>
<content type='text'>
Implemented by following the reference manual, and tested on an
MIMXRT1160EVK. The target adopts all of the same limitations as the 1170
target.
</content>
</entry>
<entry>
<title>Update to cmrt 0.7.2, and use new features</title>
<updated>2022-12-02T01:21:05Z</updated>
<author>
<name>Ian McIntyre</name>
<email>ianpmcintyre@gmail.com</email>
</author>
<published>2022-11-28T02:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/commit/?id=2b3e933a71da3e00817b18d0481d3bea382f2949'/>
<id>urn:sha1:2b3e933a71da3e00817b18d0481d3bea382f2949</id>
<content type='text'>
No need for us to set VTOR and the stack pointer anymore.
</content>
</entry>
<entry>
<title>First commit</title>
<updated>2022-12-02T01:21:05Z</updated>
<author>
<name>Ian McIntyre</name>
<email>ianpmcintyre@gmail.com</email>
</author>
<published>2022-08-02T10:21:12Z</published>
<link rel='alternate' type='text/html' href='https://git.mciantyre.dev/imxrt-rs/imxrt-rt/commit/?id=c7a9b9f3d4b9e71303c7b988d2bd916c2e4df9bc'/>
<id>urn:sha1:c7a9b9f3d4b9e71303c7b988d2bd916c2e4df9bc</id>
<content type='text'>
</content>
</entry>
</feed>
