Posts

Subscribe to receive posts in your Atom feed.

PAC shootout with ral-registers 0.2

2025-09-14

In the first PAC shootout, I confirmed that the RAL design produces a PAC that builds quickly in the places I care about. However, there's a problem with this PAC design: it forms references to MMIO registers.

I'm working on ral-registers 0.2, a breaking API change that avoids MMIO references. Once I clean up the prototype, I'll describe how it works.

To move or mutate large objects

2025-08-11

Suppose your have a large object that you need to process:

pub struct LargeObj([u8; 512]);

What's the difference in MCU time and memory when

  1. passing by value, creating a new object?
  2. passing by value, mutating the argument?
  3. passing by mutable reference?

Don't forget const

2025-08-06

As of Rust 1.88, these two functions generate different code for the CPU I'm targeting.

i.MX RT PAC shootout

2025-06-30

Years ago, I measured peripheral access crate (PAC) build times for i.MX RT MCUs. The three PACs have different structure, depending on the code generation tool.

FPU variations in i.MX RT MCUs

2025-02-15

I initially thought that all parts in the i.MX RT 1000 series had single- and double-precision floating point units (FPU). But, it turns out the 1010 only has a single-precision FPU! The double-precision FPU first appears in the 1015 family and continus through the 1020, 1040, 1050, and 1060 families.