/an-uvc_imxrt

This demo application shows how to build a USB video device based on MCUXpresso SDK.

Primary LanguageCOtherNOASSERTION

NXP Application Code Hub

AN12103: Developing a simple UVC device based on i.MX RT1050

This document describes how to develop a simple UVC device using the NXP i.MX RT1050 or i.MX RT1170 processor.

Please refer to AN12103 for complete instructions on how to use this software.

Categories: Vision, Graphics

Peripherals: usb, video

Toolchains: iar

Table of Contents

  1. Software
  2. Hardware
  3. Setup
  4. Results
  5. FAQs
  6. Support
  7. Release Notes

1. Software

This demo is built based on NXP MCUXpresso SDK. All required source files to run the demo are contained in this repository.

  • MCUXpresso SDK: 2.3.0 (i.MX RT1050 UVC demo), 2.12.1 (i.MX RT1170 UVC demo)
  • NXP USB Stack: 1.6.3 (i.MX RT1050 UVC demo), 2.8.2 (i.MX RT1170 UVC demo)
  • IAR Embedded Workbench for ARM: 9.30.1

2. Hardware

  • EVK-MIMXRT1050 Rev A, or EVKB-IMXRT1050 Rev A/B, or MIMXRT1170-EVK Rev A/B/C, or MIMXRT1170-EVKB Rev A/B/C boards
  • MT9M114 camera module
  • Personal Computer
  • Two micro USB cables

3. Setup

  1. Connect the MT9M114 camera module to J35 on the EVK-MIMXRT1050 board.
  2. Connect a micro USB cable between the host PC and the OpenSDA USB port J28 on the EVK-MIMXRT1050 board.
  3. Connect another micro USB cable between the host PC and the micro USB port J9 on the EVK-MIMXRT1050 board.
  4. Open a serial terminal with the following settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  5. Build a configuration and download the program to the target board.

4. Results

The log below shows the output of the demo in the terminal window:

This is a USB video demo application.

A USB device named "CSI Camera Device" start to be enumerated. After the enumeration is finished, open a webcam program on your PC, like AMCap. Select and open the demo video device. Then you can see the video screen on your PC.

  • EVKB-IMXRT1050 UVC demo

  • MIMXRT1170-EVK UVC demo

5. FAQs

6. Support

If you have any questions, please create a ticket in NXP Community.

Project Metadata

Board badge Board badge Board badge Board badge

Category badge Category badge

Peripheral badge Peripheral badge

Toolchain badge

Questions regarding the content/correctness of this example can be entered as Issues within this GitHub repository.

Warning: For more general technical questions regarding NXP Microcontrollers and the difference in expected funcionality, enter your questions on the NXP Community Forum

Follow us on Youtube Follow us on LinkedIn Follow us on Facebook Follow us on Twitter

7. Release Notes

Version Description / Update Date
1.0 Initial release on Application Code Hub August 10th 2023