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 Siddharth,
I have successfully developed an application on F28388 launch pad . But I am still unable to enumerate USB on customized board . I am unable understand the issue as the USB port is receiving 5V as per the requirement of USB host.Below is the attached image of our board . Kindly guide me if possible.
Regards
Drishti
Moreover , The crystal frequency is 20 MHz and usb device is working fine on this board.
Hi Dirishti,
From ADuM3160 datasheet on termination resistors. 'For full speed operation, the D+ and D− lines on each side of the device require a 24 Ω ± 1% series termination resistor. These resistors are not required for low speed applications.'
Please verify the circuit with their Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADuM3160.pdf
Best,
Kevin
Hi Kevin ,
I have tried changing the hardware as suggested but I am still unable to enumerate USB. Kindly ,guide me if possible .
Regards
Drishti
Hi Dirishti,
Some questions. You are wanting to use F2838x device as a USB host, correct? And if so, you are providing 5V power from the USB host to the USB devices? You've checked that this 5V power rail looks OK at the USB devices (can check with multi-meter)?
Moreover , The crystal frequency is 20 MHz and usb device is working fine on this board.
Our F2838x examples default to using 25MHz oscillator as the clock source. You've made necessary changes for your 20MHz crystal?
Best,
Kevin
Hi Kevin ,
Yes I am trying to use F28388 as host and I have verified the voltage coming on USB port by multi meter as well.
As far as, crystal frequency is concerned ,I tried running the USB device on 25 MHZ but that didn't worked out.Thus I have to change the crystal to 20 MHZ.
To make the crystal work , I simply predefined USE_20MHZ_XTAL. The current scenario is my board is working fine for USB device , But in case of USB Host , USB is not getting enumerated at all.
Regards
Drishti
Hi Drishti,
Kevin is currently out of the office today. He will return on Monday so please expect a delay in response
Regards,
Peter
Drishti,
Can you make sure that the USB GPIOs are correctly initialized and also check if the External Power Signal Enable pin is set.?
Best Regards
Siddharth
Siddharth,
As per my knowledge they are correctly configured.Below is the image for reference.
Regards
Drishti
Drishti,
The GPIO initializations looks correct. Not sure what could be causing this problem.
Is there a way you can probe using a USB analyzer ?
Best Regards
Siddharth
Hi Siddharth,
I am able to decode the issue with my hardware and now its working fine for both F28379D and F28388D control card. However, the application I want to run is not working with either of them . But I have successfully ran the application on F28388D LAUNCHPAD . Following is the image of code I ran for my application.
The application is simply to open a file in pendrive and write our content in it.
Regards
Drishti
Drishti,
What error dp you see when you run it on the control card? Do the fopen or fwrite return any error code?
Best Regards
Siddharth
Siddharth ,
There is no error at all while running this code .But while checking the FRESULT status in debug window , its showing FR_INVALID_OBJECT but also the same code is working fine with F28388 Launch pad
Regards
Drishti
Hi Siddharth ,
The issue is resolved , I re-verified and found that I have not mounted the file properly . The application is working fine for both control cards. Can you tell me how much time USB Host will take to write the file though?
Regards
Drishti
Hi,
Kindly tell the procedure to calculate the time USB host is taking to write the file.
Regards
Drishti
Drishti,
I am not sure if there is a way to calculate the time. It will also depend on the speed of the mass storage device connected .
Best Regards
Siddharth