Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Testing a USB-Serial Bridge Controller Configured as USB-UART with Linux® – KBA92551
Question: How do you test a Cypress® USB -Serial Bridge Controller configured as USB-UART with the Linux®OS?
The USB driver stack in Linux has a built-in driver for Communication Device Class Abstract Control Model (CDC ACM) devices. The USB-Serial device configured as a CDC UART binds to the Linux CDC ACM driver automatically and creates a device node in “ /dev/ttyACM* ”. Figure 1 lists the device as available.
Note: * is a wildcard to represent the number of the device node. The name of the device node varies based on the number of devices connected. With one device, the kernel creates the /dev/ttyACM0 node, which the application uses to communicate with the device.
Figure 1: Linux Terminal Listing the Device as Connected
Figure 2 shows that the CY7C65213 device is connected and the node has been created in the “/dev” folder with the name ttyACM0, as described earlier.
Figure 2: CY7C65213 Node Created in “/dev” Folder
Terminal emulation software such as Minicom can be used to communicate with CY7C64225 and stream data using the following procedure:
In the Configuration window, select Serial Port Setup.
Press A and then type dev/ttyACM0 to select the Serial Device.
Press E to configure the Baud Rate in the same window.
For simple loopback tests, short the RXD and TXD pins of the USB-Serial device on the board. Send a few characters using your keyboard. The characters you entered will be displayed on the terminal as shown in Figure 3.
Press Esc to leave the active window and select save set up as in the previous window. Exit Minicom.