"Original Open source application phase 5th" based on RL-USB+RL-FLASHFS's external USB stick solution

Source: Internet
Author: User

Description
1, Rl-usb plug-in the example of a U disk, recently too many netizens consulted, do not do an example is justified. This example is for this purpose.
2, RTX and all of its middleware basic examples, this is the USB host function, this is a complement, all the basic functions have been done comprehensively.
3, this example only supports the MDK4.74 version, because Rtx,rl-flashfs,rl-usb are from the MDK4.74 installation directory, the use of MDK4.74 is the best combination. To use MDK5, see this note: http://forum.armfly.com/forum.php?mod=viewthread&tid=86086
4, RL-FLASHFS's file name only supports ASCII, does not support Chinese, this should pay special attention to.
5, RL-FLASHFS function is the standard C library function, with the computer-side file system using the same method.
6, compared to St's USB library, compatibility slightly better point.


Instructions for use:

For the first time, you plug in the USB stick, and then enumerate and print the serial port if the connection is successful. If you can identify the USB flash drive and the operation is normal, then you can test the hot-plug operation is normal.

hot-swappable, which automatically recognizes and initializes operations without the need to invoke load and unload instructions.
Please select the serial Operation command, the computer keyboard printing numbers can:
l-load USB
u-Uninstall USB
1-show SD card capacity and remaining capacity
Span style= "font-size:16px" >2-Displays the file under the root of the SD card
3-Create three text text and write to the content using a different function
4-Reads text with three different functions
5- Create a text literal and specify a location to read and write to it
6-delete folders and files
7-test file read/write speed
8-write data to CSV file
9-read data from CSV file


Precautions:
The current RL-USB host function, only the STM32 FS interface external USB drive, and the HS interface external USB stick did not debug.
For our V5 and V6 Development Board, the FS interface is used for device, to do the host function, you need to do 5V power supply. The solution is here to connect 1 5V dupont lines. Take a look at the two red squares below to connect.

interface to use the microUSB interface, that is, you need to add a switch to connect the test stick.

Routine Download:
Link: Pan.baidu.com/s/13bkdulxteaadxcjl6eogha Password: bu34


Compatibility is convenient, the 4 USB drives on hand can be successfully identified and tested.

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.