imxrt-rs / imxrt-hal

Rust for NXP i.MX RT
Apache License 2.0
133 stars 33 forks source link

Integrate i.MX RT 1060 EVK board for examples #124

Closed mciantyre closed 1 year ago

mciantyre commented 1 year ago

All examples build. However, I'm not equipped with a 1060 EVK, so I haven't tested any of these on hardware.

Pinouts correspond to board revision A3. Looks like board revision B1 changes some header identifiers (J24 on A3 is J17 on B1, for example). I haven't done a diligent comparison to see if any pin routing is different.

Depends on imxrt-rs/imxrt-boot-gen#10. Once that's merged and released, I'll remove the git dependency here.

mciantyre commented 1 year ago

Here's (what should be) the command to build and flash the rtic_logging example.

cargo install cargo-flash
cargo flash --features=board/imxrt1060evk --release --chip=mimxrt1060 --example=rtic_logging --target=thumbv7em-none-eabihf

You may need to press the reset button after programming. After programming, you should see the LED blinking. If you connect to the DAP's serial port, you should see logging output.

I'll keep this open for a week for anyone to provide feedback.

mciantyre commented 1 year ago

Debugged and tested this over Matrix. After correcting some clock gates, we observed a blinking LED.

Pinouts correspond to board revision A3. Looks like board revision B1 changes some header identifiers [...]

The schematic for revision B1 has a revision history on the first page. The entry for rev code B indicates that I2C3 SCL and SDA are swapped, differing from rev A boards. We're not using that peripheral at the moment, but just a heads up in case that changes. There are other changes listed in the revision notes that I haven't evaluated.