Hi there,
I am using C6748 LCDK and CCS v6.01. I want the DSP to read/write files directly from/to a USB memory stick plugged to one of the USB ports on the LCDK. Could you provide or point me to a simple example code?
Many thanks,
Bill
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi there,
I am using C6748 LCDK and CCS v6.01. I want the DSP to read/write files directly from/to a USB memory stick plugged to one of the USB ports on the LCDK. Could you provide or point me to a simple example code?
Many thanks,
Bill
Hi Norman,
Many thanks for your reply. I tried the example code today. The code compiles and can be run on the LCDK, but the USB drive cannot be mounted. I connected the USB disk through a USB cable via the USB OTG connector on the LCDK. I am not sure what's the problem. By the way, I am using C6748_StarterWare_1_20_03_03 shipped with the LCDK, but I am using CCS v6.01 insteaf CCS v5.5. Any suggestions?
To be more specific, everything else (e.g., the UART communication with the PC) of the example code works well. But when I send command "ls" from the PC terminal, it says "Command returned error code FR_NOT_READY "
Best Regards,
Bill
Hi Bill,
Bill says said:I am using C6748 LCDK and CCS v6.01. I want the DSP to read/write files directly from/to a USB memory stick plugged to one of the USB ports on the LCDK. Could you provide or point me to a simple example code?
1. If you want the C6748 LCDK board to act as a USB host, you have to connect a jumper at J2.
2. Using CCS, please import the example, USB_host_msc which is part of C6748 Starterware package. ( path : C:\ti\C6748_StarterWare_1_20_04_01\build\c674x\cgt_ccs\c6748\lcdkC6748\usb_host_msc
3. Refer the screenshot below to know the comands available in that example. Using "cat" command, you can read a file and display it on the debug window.
4. There are no commands available for transferring files to and from the pen drive into the DSP. You can view the files, list the files and display the files.
5. please note that the "ls"command works fine in the screenshot below.
Please revert if have any questions in running the USB host Msc example.
Regards,
Shankari
-------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
--------------------------------------------------------------------------------------------------------
Hi Shankari,
The C6748_StarterWare came with my LCDK is an older version 1_20_03_03. Could you advise where to download the latest version?
Thanks very much,
Bill
Hi Bill,
That version (1_20_04_01) is the latest one and no further release yet.
http://processors.wiki.ti.com/index.php/StarterWare
Hi Norman,
Many thanks for your reply. I have found v01_20_04_01 now.
Best regards,
Bill
Hi Bill,
Another way is to do a careful screen comparison of each settings in the CCS properties of both the projects and find the difference.
It seems to be the CCS settings issue.
Regards,
Shankari
-------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
--------------------------------------------------------------------------------------------------------
Hi Norman,
Many thanks for your reply. Yes, I forgot to define lcdk6748 and DMA_MODE. It works now.