i.MXRT105x Middleware Pack  
CMSIS-Drivers for NXP i.MXRT105x devices
 
Loading...
Searching...
No Matches
CMSIS-Driver for USB Host Interface

CMSIS-Driver for USB Host Interface Setup

The CMSIS-Driver for USB Host Interface enables necessary clocks and uses dedicated USB pins so no additional configuration in the MCUXpresso Config Tools is necessary.

The CMSIS-Driver for USB Host Interface uses CMSIS-Driver for EHCI which is provided in the Keil::CMSIS-Driver pack.

The procedure of configuring EHCI driver for usage:

  1. Enable the component Keil::CMSIS-Driver:USB Host:EHCI variant TT
  2. Edit the USBH_EHCI_Config.h file and set define values as follows:
    • USBH0_EHCI_DRV_NUM = 1
    • USBH0_EHCI_BASE_ADDR = 0x402E0100
    • USBH1_EHCI_ENABLED = 1
    • USBH1_EHCI_DRV_NUM = 2
    • USBH1_EHCI_BASE_ADDR = 0x402E0300
    • USBH_EHCI_MAX_PIPES = 4

Note: If USB Communication Area has to be located in specific memory then enable Relocate EHCI Communication Area by setting USBHn_EHCI_COM_AREA_RELOC define value to 1 and use name specified as value of USBHn_EHCI_COM_AREA_SECTION_NAME define in your linker script. The Communication Area on this microcontroller must be located in the internal SRAM memory.

The USBH_EHCI_HW_iMXRT10xx.c file provides hardware-specific interface to EHCI driver.