This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB not detected

Dear All,
Using the libraries and C files provided by the Keil, i have written the code for USB on LPC1768 controller. The problem with the code is that when i connect the USB pen-drive, it is not being detected.
On debugging, usbh_msc_status(0,0) function returns zero. I checked the pin-connect block. The pins are initialsied properly.
GPIO lines are initialised as follows:
P0.29 D+, P0.30 D-
P1.18 GoodLink, P1.22 USB_UP_LED, P1.27 USB_OVRCR

Also my PLL0 clock out is 48MHz and my PLL1 clock out is 48MHz which is dedicated for USB.
Is it necessary to use 100MHz clock for PLL0 as shown in example??
Kindly advise.

Regards,
Dhaval

Parents
  • Thanks.
    I ran the keil example my board. It ran successfully and detected the pen dirve assuring the hardware.

    on debugging, the very first dissimilarity that i noticed is that in my code, the Port 1 Pin 19 doesnt get initialized as USB_PPWR (remains as GPIO line) while it is initialized properly in the keil example. The initialization of the pins is done in the finit() which happens to be library function.

    Are the configurations in any of the configuration wizard incorrect.
    (Previously, the code even didnt initialized any of the USB pins. I had found out that the configurations in File_config.c where incorrect.)

    Also the PLL0 and PLL1 clock rates are bothering me. Kindly comment on the clock rates also. i think that the clocks are initialized properly.

    Regards,
    Dhaval

Reply
  • Thanks.
    I ran the keil example my board. It ran successfully and detected the pen dirve assuring the hardware.

    on debugging, the very first dissimilarity that i noticed is that in my code, the Port 1 Pin 19 doesnt get initialized as USB_PPWR (remains as GPIO line) while it is initialized properly in the keil example. The initialization of the pins is done in the finit() which happens to be library function.

    Are the configurations in any of the configuration wizard incorrect.
    (Previously, the code even didnt initialized any of the USB pins. I had found out that the configurations in File_config.c where incorrect.)

    Also the PLL0 and PLL1 clock rates are bothering me. Kindly comment on the clock rates also. i think that the clocks are initialized properly.

    Regards,
    Dhaval

Children
No data