- Freescale Port Devices Driver
- Freescale Port Devices Driver Download
- Freescale Port Devices Driver Update
- Freescale Port Devices Driver Downloads
- Freescale Port Devices Drivers
Install Drivers for NXP FRDM-KL25ZBoard
Repository for using Microchip EVB-KSZ9477 board. Product Supported: KSZ9477, KSZ9567, KSZ9897, KSZ9896, KSZ8567, KSZ8565, KSZ9893, KSZ9563, KSZ8563 - Microchip.
The NXP™ FRDM-KL25Z boardhas an open standard embedded serial and debug adapter called OpenSDA.This adapter bridges the serial and debug communications between aUSB host computer and an embedded target processor.
As downloaded this demo application includes a fully functional port of lwIP 1.1.1 for FreeRTOS together with a driver for the MCF523x ethernet interface. In addition it includes the typical functionality also found in the other FreeRTOS ports like an example of a serial driver and the demo tasks. Vendor: Freescale Semiconductor, Inc. / Device: OSBDM - Debug Port.
Before you use the NXP FRDM-KL25Z board with the host computer, install the OpenSDA USB drivers.
To install the OpenSDA USB driver:
Download and Install the P&E OpenSDA USB Drivers from the site https://www.pemicro.com/opensda/.
Make sure that you have the latest bootloader and the OpenSDA firmware on your board. To get the latest firmware, refer to the section, Get the Latest Bootloader and the Firmware.
Connect a USB cable from your computer to the OpenSDAmini-B USB connector.
The board appears as a removable storage drive with a volumelabel FRDM-KL25Z.
The MSD Flash Programmer also includes a USB virtualserial port, which requires an .INF file for installation in Windowsplatform. The .INF file is available in the P&E OpenSDA USB Drivers(Step 1) and also on the FRDM-KL25Z removable drive.
To install the USB virtual serial port driver:
Open Start menu > Control Panel >Device Manager.
Go to ports and check if 'OpenSDA - CDC Serial Port'is available. The driver installation is complete if OpenSDA –CDC exists. Otherwise, you should see 'PEMicro/Freescale - CDC SerialPort' under 'other devices' as shown below.
Right click on 'PEMicro/Freescale - CDC Serial Port'and select Update Driver Software.
In the Update Driver Software dialog box, select Browsemy computer for driver software. The driver is availablein the P&E OpenSDA driver package that you have installed as wellas on the FRDM-KL25Z removable drive.
Point to either location to locate the USB virtualserial driver.
Click to complete theinstallation.
After you install the driver, you will see the serial port forFRDM-KL25Z Board under Ports.
- Linux
- NVIDIA Tegra based Modules
Freescale Port Devices Driver
The USB (Universal Serial Bus) standard specifies two roles USB host and USB peripheral (also known as USB function, USB peripheral device or sometimes just USB device). The bus can only have one USB host connected all other devices need to be in USB peripheral mode. Most PCs support USB host mode exclusively. However, embedded systems often have multiple USB controller supporting host or peripheral roles or supporting both roles on a single controller (dual-role controller). The dual-role controllers often also support the OTG (On-The-Go) specification which defines a host negotiation protocol allowing two devices to negotiate for the role of the host.
On Colibri modules the client port (USBC) is usually connected to a dual-role capable controller. By default the port is in peripheral mode. If a USB Micro-B OTG cable is used (which connects the ID pin to ground) the circuit on the carrier board automatically enables driving +5V onto VBUS in order to provide power to USB devices as required by a host. On the other hand VBUS is also connected to the Colibri USBC_DET signal (usually via a diode) allowing driver software to monitor and subsequently change the role. On Apalis modules a full OTG port (USBO1) is provided which makes use of the OTG ID pin using the USBO1_ID signal to determine its role and additionally the VBUS pin using the USBO1_VBUS signal to determine the actual connection status thereof allowing suspending the USB complex if not connected.
On Linux USB peripheral mode is supported through the Gadget API. This API abstracts the USB peripheral controller hardware as well as offers hardware neutral routines which allow to implement USB functions (e.g. USB CDC ACM or RNDIS). Traditionally the USB function had to be chosen at Kernel compile time (e.g. g_ether). The Linux USB gadget drivers received increasingly more attention and have evolved over time, especially since Android appeared. The Android variant of the Linux kernel added functionality allowing easy switching between USB functions using sysfs. Later in Linux 3.10 a similar functionality also landed in the upstream kernel which now allows configuring USB gadgets through configfs (the USB Gadget ConfigFS). Depending on the Linux kernel version provided by our BSP a different level of USB peripheral functionality and API is available.
USB peripheral devices need a vendor and product identification. Toradex has its own vendor ID (0x1b67) and assigns a product ID for each Colibri and Apalis product which you as a customer can use too. The USB Product ID is the sum of an offset of 0x4000 and the hexadecimal representation of the product identifier, e.g. 0x4000 + 12 = 0x400c (the product identifier is the first 4 digits of the Toradex Product Number, e.g. 0012 for Colibri VF61 256MB IT V1.1B).
Some platforms need device dependent and certified drivers (e.g. CDC ACM for Microsoft Windows) even for standard USB classes. While it is possible to use the driver delivered with Windows a custom inf file still needs to be provided. For better out-of-the-box experience the standard images typically use the default Linux USB product/vendor ID (e.g. 1d6b:0104 Linux Foundation Multifunction Composite Gadget).
U-Boot's CONFIG_USB_DEVICE config symbol allows for U-Boot to provide USB peripheral mode support. With recent versions we successfully tested ums (User Mode Storage) and dfu (Device Firmware Upgrade). Both USB functions conform to standardized USB classes.
Since BSP V2.4 all modules use the same U-Boot version 2015.04. This common U-Boot version configures the USB peripheral device identification using the Toradex vendor ID and product ID.
The following exports the eMMC on SoMs with an eMMC or the SD card on the SoMs with raw NAND. Note that with CTRL+C you can abort the operation and regain control over U-Boot.
On the host connected to the SoM you will now see the following USB device. Assuming you have our regular BSP installed on an eMMC based SoM the following block devices will also appear and possibly mounted:
Note that ums currently can only export the user area of an eMMC but not its boot areas. This prevents you from updating the bootloader over this mechanism.
NXP/Freescale Vybrid/i.MX7/i.MX6ULL/i.MX6/i.MX8/i.MX8X based Modules
The NXP/Freescale Vybrid BSP (since V2.4 Beta 1) and the i.MX BSP (since V2.5 Beta 2) use the USB Gadget ConfigFS to configure the USB peripheral port.
The USB Gadget ConfigFS is a file system which allows to configure USB functions by using file system commands such as mkdir and creating/writing files. Typically the file system is mounted under /sys/kernel/config/. The official Linux kernel documentation has more information in Documentation/usb/gadget_configfs.txt on how to use the file system to enable USB functions. Matt Porter held a talk at ELC 2014 titled Kernel USB Gadget Configfs Interface cover the Gadget ConfigFS a bit more in depth.
The library libusbgx (or its predecessor libusbg) allows to use the USB Gadget ConfigFS through a C API. This can be useful if embedded software needs to dynamically control USB functions provided by a device. The library also provides two utilities called gadget-import and gadget-export. This utilities allow to export a hand-crafted USB Gadget to a schema file and reimport it.
The BSP provides a default schema specifying an RNDIS configurations (USB functions) under /etc/usbg/g1.schema. A systemd service called usbg.service uses gadget-import to import this schema on startup (see this commit libusbg: add updated version of USB gadget library which initially added the functionality, then providing an RNDIS and CDC ACM composite device).
To alter the schema, one can either create a completely new gadget schema, alter the existing gadget and reexport it, or alter the schema directly (for simple changes).
This example shows how to create a completely new configuration., to create a Gadget configuration for the a single USB CDC (Communications Device Class) Ethernet (ECM).
First a new gadget needs to be created
Attention: If /sys/kernel/config/usb_gadget/ does not exist you need to load the libcomposite module: modprobe libcomposite
Then, one or multiple configurations can be assigned. A Gadget supporting multiple configurations (USB functions) is also known as a composite gadget. Note that depending on the operating system used on the USB host device, it might be problematic to use such configurations (see also Documentation/usb/gadget_multi.txt)
Functions can be created by creating a directory like functions/ Another example how to create a mass storage device: The Gadget testing documentation located at Documentation/usb/gadget-testing.txt of the Linux kernel also contains some valuable information how to use the USB Gadget functions. To enable this configuration write the name of the USB controller to the UDC file (see /sys/class/udc/ for available USB Device Controllers). You need to disable the old configuration first before enabling the new one: Don't forget to store the configuration using gadget-export: To make sure the g2 Gadget configuration gets loaded automatically, alter the systemd service located at /lib/systemd/system/usbg.service or name the schema g1.schema. Starting with our V2.x BSPs based on NVIDIA's L4T kernel we are using the Android multi gadget driver which allows various functionality to be exposed via a single USB device cable connection. USB Mass Storage allows exporting any block device from the target module to a PC and use it just in the same way as any regular USB memory stick. Note: Whatever block device you export by using this method, it can not be in use on the target module side (e.g. by a file system driver). Otherwise the simultaneously accessing file system drivers would corrupt the file system on the block device! The example below shows how a regular SD card inside one of the Apalis Evaluation board's slots can be shared: The Vibrante kernel in our V1.x BSPs contained the g_ether driver which acts as an Ethernet over USB controller (CDC Ethernet) by default. The later L4T kernel in our V2.x BSPs comes with the Android RNDIS Ethernet gadget driver. Most nowadays operating system (including Linux, Windows 7) include respective host drivers (plug and play). Our latest BSPs now run a DHCP server on the module to automatically assign your PC an IP address upon USB device connection. Configure IP address on device usb0 and test performance using iperf.ecm Ethernet Control Model (CDC ECM) Ethernet Control Model eem Ethernet Emulation Model (EEM) Newer USB Ethernet standard that is somewhat simpler than CDC ECM ncm Network Control Model (CDC NCM) Advanced protocol for Ethernet ffs Function filesystem (FunctionFS) Allows to implement USB functions from user-space (e.g. for MTP) Documentation/usb/functionfs.txt mass_storage Mass storage Exports a regular file or block device as USB Mass Storage disk drive Documentation/usb/mass-storage.txt hid HID function Generic emulation of USB Human Interface Devices (HID) Documentation/usb/gadget_hid.txt NVIDIA Tegra based Modules
Mass Storage
Target
Freescale Port Devices Driver Download
Host
RNDIS
Freescale Port Devices Driver Update
USB Device Connection
Freescale Port Devices Driver Downloads
Target (USB Device)
Freescale Port Devices Drivers
Host (USB Device)
USB Device Disconnect