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.

How to know writing mode of USBHCDControlTransfer() is working in USB host mode ?

Other Parts Discussed in Thread: TEST2

Hello,

I have another post on failure using writing mode of USBHCDControlTransfer() previously.

TI provides ONLY ONE example to demo USB host "usb_host_msc", but many in devive mode.

Unfortunately, I set a breakpoint in "case EP0_STATE_SETUP_OUT" inside  USBHCDEnumHandler() and it never gets hit !!!

So, this example does NOT cover "writing mode of USBHCDControlTransfer() ???

Now, I start wondering if this mode has ever been tested by TI ???

Where I could get a test case for this mode ?

Thanks,

  • user4327245,

    We will need to look into this query further and get back to you. Thanks.

    Lali
  • user4327245,

    A few questions to clarify:

    - You are using the project at AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\evmAM335x\usb_host_msc, correct?

    - Are you able to successfully run the project with a USB stick plugged into the AM335x GP EVM?

    - Are you able to R/W to the stick? you could try to create a test.txt on the USB stick on your windows machine and then see if you can "cat" that on the example program and also make a copy of it (e.g cat test.txt > test2.txt)

    - How are you setting the breakpoint that you referred to above? in assembly?

    Wanted to get get more information on your test conditions so that we can reproduce what you see and provide a proper response. Waiting for your reply. Thanks.

    Lali

  • - You are using the project at AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs\am335x\evmAM335x\usb_host_msc, correct?
    >> YES

    - Are you able to successfully run the project with a USB stick plugged into the AM335x GP EVM?
    >> YES, I'm able to read USB stick, but NOT able to verify write operation

    - Are you able to R/W to the stick? you could try to create a test.txt on the USB stick on your windows machine and then see if you can "cat" that on the example program and also make a copy of it (e.g cat test.txt > test2.txt)
    >> This "cat" is available only on Linux, I'm running bare-metal using Starterware, NOT Linux

    - How are you setting the breakpoint that you referred to above? in assembly?
    >> All in C from Starterware

    THNAKS<
  • CAT is supported in this example.

    Please see the screenshot below from the teraterm window.Can you try the cat test.txt > test2.txt to verify if you can create a file on the USB stick?

    Lali

  • It's my mistake not to look close at HELP and miss CAT op in this example.
    I'm in the middle of other project so it take me a while back to this
    But, now I'm able to work on my own this based on your invaluable input.
    Thanks so much for your great help
  • You are welcome.
    I noticed that you have some other open Starterware threads on e2e. I know that they have been there for a while, but could you please assist us in closing some of them out if they are no longer relevant, or bump the ones that still need attention? Would appreciate it. Thanks.

    Lali
  • I'm more than happy to close them. They have not been resolved in long time and I couldn't wait too long. Now I'm working on other stuff and could not remember what they are!!!
    I did trace all my posts and couldn't find them to close
    Thanks,