EZ-USB fx2 LP CY7C68013A Development Guide (4)-Linux-based driver writing

Source: Internet
Author: User

In Cypress 68013, an exclusive task is to save the epprom for USB firmware. How can this problem be solved? He puts the firmware on the host driver.

In Windows, how does one implement Linux? When you go to the cypress website, people say that the Linux driver is not provided. After all, Linux is not the mainstream...

Overseas users are enthusiastic. Now I know there are two solutions, but they are all based on the firmware download method described in the cypress manual:

1. fxload: old-fashioned, available in SourceForge

2, electronics -- USB-FX2 Board: Software: I recently found, web site: http://www.triplespark.net/elec/periph/USB-FX2/software/

 

Okay, I 've been talking for a long time. If you want to know what's going on, take a closer lookCodeHow to write it, it is best to compare it with Cypress's TRM manual, and I will understand it later.

However, because USB is a fixed protocol, another pile of latencies in Linux Write libusb, providing universal control transmission and bulk transmission functions. The above 2ndProgramIt is based on this database.

 

If you use USB host under arm to control 68013, you only need to write the corresponding format data from hex to ep0. After writing, it will reenumerate like a PC.

 

If 68013 uses the Slave FIFO mode, note that the autoin register setting must be consistent with the size of the USB data packet. Otherwise, USB and USB are not applicable. In the USB firmware, check whether it is high speed.

In addition, you must pay attention to the clock when writing the usb fifo on the CPU end. It is best to use the full or empty FIFO sign, otherwise it is easy to lose packets.

 

Now after the firmware, there must be a device node to access, this problem can be modeled like drivers/USB/usb-skeleton.c to write a line, this file will automatically create a device node. I believe that the most common practice in mass data transmission is batch data transmission. The example in this example is batch data transmission. You can search for other APIs.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.