MCUXpresso SDK Documentation

isi_dwc_mipi_csi2_yuv422

isi_dwc_mipi_csi2_yuv422#

Overview#

This example shows how to use ISI to receive camera frame through MIPI CSI2.

In this example, the camera input frame is YUV422 format and ISI output frame is RGB565 format. The output frame is shown in the screen.

NOTE:

  1. the example is for newly Synopsys DWC MIPI CSI2 driver and IMX95 platform.

  2. This example must run continously to get the right result, breaking during debug will results to display tearing. Because the ISI driver maintains IP state through ISR, if the core is halted, then driver state does not match the IP state. When exiting debug, the core might be halted for a short while, so the tearing may happen when exiting debug.

If the camera and LCD panel resolutions are not the same, then only part of the camera frame will be shown.

Supported Boards#

IMX952LPD5EVK-19
Hardware requirements
  • Micro USB cable

  • IMX952LPD5EVK-19 board

  • J-Link Debug Probe

  • 12V~20V power supply

  • Personal Computer

  • DUAL LVDS panel

  • AP1302 sensor

Board settings

For DUAL LVDS panel(1920*1200), connect MINISAS ports J15 and J16 to panel. For AP1302 sensor with MINISAS connect to MIPI-CSI1 interface(J13) set SW9 JTAG_UART5_SEL to ON if use Jlink to load firmware.

Prepare the Demo
  1. Connect 12V power supply and J-Link Debug Probe to the board, switch SW4 to power on the board.

  2. Connect a micro USB cable between the host PC and the J31 USB port on the cpu board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the example.

Note:

  1. the ap1302 is an external isp, it need special firmware from OnSemi GitHub. pls download ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin from: https://github.com/ONSemiconductor/ap1302_binaries/tree/main/NXP_i.MX93

  2. download fw in to this location: ${SdkRootDirPath}/components/video/camera/device/ap1302/ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin, combine it into one bin file.

================

Running the demo

ISI MIPI-CSI2 example start… CSI interface init pass. DISPLAY Device init pass. When the example runs successfully, you can see the expected figure shown in screen.

IMX95LPD5EVK-19
Hardware requirements
  • Micro USB cable

  • IMX95LPD5EVK-19 board

  • J-Link Debug Probe

  • 12V~20V power supply

  • Personal Computer

  • DUAL LVDS panel

  • AP1302 sensor

Board settings

For DUAL LVDS panel(1920*1200), connect MINISAS ports J15 and J16 to panel. For AP1302 sensor with MINISAS connect to MIPI-CSI2 0 interface(J13)

Prepare the Demo
  1. Connect 12V power supply and J-Link Debug Probe to the board, switch SW4 to power on the board.

  2. Connect a micro USB cable between the host PC and the J31 USB port on the cpu board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the example.

Note:

  1. the ap1302 is an external isp, it need special firmware from OnSemi GitHub. pls download ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin from: https://github.com/ONSemiconductor/ap1302_binaries/tree/main/NXP_i.MX93

2. download fw in to this location: ${SdkRootDirPath}/components/video/camera/device/ap1302/ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin, combine it into one bin file.
Running the demo

ISI MIPI-CSI2 example start… CSI interface init pass. DISPLAY Device init pass. When the example runs successfully, you can see the expected figure shown in screen.

FRDM-IMX95
Hardware requirements
  • Micro USB cable

  • IMX95LPD5EVK-19 board

  • J-Link Debug Probe

  • 12V~20V power supply

  • Personal Computer

  • LVDS2HDMI card

  • AP1302 sensor

Board settings

For LVDS2HDMI card(1920*1080), connect HDMI port J17 to panel. For AP1302 sensor with MINISAS connect to MIPI-CSI2 0 interface(J13) Ensure the J12 jumper connect to 12V, J15 jumper connect to 3.3V.

Prepare the Demo
  1. Connect 12V power supply and J-Link Debug Probe to the board, switch SW4 to power on the board.

  2. Connect a micro USB cable between the host PC and the J31 USB port on the cpu board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Launch the debugger in your IDE to begin running the example.

Note:

  1. the ap1302 is an external isp, it need special firmware from OnSemi GitHub. pls download ap1302_60fps_ar0144_27M_2Lane_awb_tuning.bin from: https://github.com/ONSemiconductor/ap1302_binaries/tree/main/NXP_i.MX93

Running the demo

MCUX SDK version: 2026.06.00-pvw1 ISI MIPI-CSI2 example start… AP1302 firmware embedded at: 0xc670 CSI interface init pass. DISPLAY Device init pass. When the example runs successfully, you can see the expected figure shown in screen.