Skip to content

MCXA HIL tests #5306

@diondokter

Description

@diondokter

Let's collect the HIL tests and setup we will want.

Interesting peripherals:

  • GPIO + interrupts (reuse ADC pins)
  • I2C controller + target
  • Uart
  • ADC
  • I3C
  • CRC
  • Watchdog (but how to test? reset reason?)
  • Flash
  • CTimer PWM
  • CTimer capture (reuse ADC pins)
  • SPI

We'll need to find the right wiring setup to be able to do this.

  • I2C controller + target: LPI2C1 on arduino connector J4 to LPI2C2 on camera connector J9
    • SDA: P1_0 -> P1_8
    • SCL: P1_1 -> P1_9
  • Uart: LPUART3 on mikroBUS connector J5 to LPUART4 on flexIO connector J8
    • P4_5 (TX) -> P4_4 (RX)
    • P4_2 (RX) -> P4_3 (TX)
  • ADC + GPIO + CTimer capture + CTimer PWM: ADC0_A1 on arduino connector J2 to CT_INP8 + CT0_MAT2 on arduino connector J2
    • P2_4 -> P1_8 (overlaps with I2C SDA but on different connector)
  • I3C: Only one peripheral, so no loopback tests. But it's connected to the P3T1755DP temperature sensor
  • SPI: LPSPI0 on mikroBUS connector J6 to LPSPI1 on arduino connector J2
    • CS: P1_3 -> P3_11
    • SCK: P1_1 -> P3_10 (overlaps with I2C SCL but on different connector)
    • MISO/SDI: P1_2 -> P3_9
    • MOSI/SDO: P1_0 -> P3_8

That's 9 wire connections in total.

There could be more in the future, like DAC + OPAMP -> ADC or CAN0 -> CAN1. But I don't think they're in scope now.

Building the HIL tests should be done here: https://github.com/embassy-rs/embassy/tree/main/tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    e-mcxaIssues for the NXP MCX-A family of chips

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions