Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

CCS: omapl 138 usb 480M

$
0
0

Tool/software: Code Composer Studio

hi:

I have a questione to ask .

our "OMAPL138_StarterWare_1_10_04_01\examples\evmOMAPL138\usb_dev_msc" projcet can correctly work in device mode and full speed mode.

UsbPhyOn(unsigned int ulIndex) function is following (USB_MODE_FULLSPEED ,19.2M,DEVICE MODE),



void UsbPhyOn(unsigned int ulIndex)
{

        unsigned int reg = 0;
       BSP_KickUnlock();
       reg = HWREG(g_USBInstance[ulIndex].uiPHYConfigRegAddr);
       reg &= ~(CFGCHIP2_REFFREQ);
       reg |= CFGCHIP2_REFFREQ_19_2MHZ;

        HWREG(g_USBInstance[ulIndex].uiPHYConfigRegAddr)=reg;

        tprintf("\r\n clk==0x%08x:\r\n", reg &= (CFGCHIP2_REFFREQ));

reg = HWREG(g_USBInstance[ulIndex].uiPHYConfigRegAddr);
reg &= ~(CFGCHIP2_RESET | CFGCHIP2_PHYPWRDN | CFGCHIP2_OTGPWRDN);

reg |= CFGCHIP2_PHY_PLLON;

HWREG(g_USBInstance[ulIndex].uiPHYConfigRegAddr) = reg;

while (!(HWREG(g_USBInstance[ulIndex].uiPHYConfigRegAddr) & CFGCHIP2_PHYCLKGD));

#idfef USB_MODE_FULLSPEED

HWREGB(USB0_BASE + USB_O_POWER) &= 0xdf;

#endif /* USB_MODE_HS_DISABLE */


tprintf("\r\n USB0_BASE + USB_O_POWER=0x%08x:\r\n", HWREG(USB0_BASE + USB_O_POWER));

}


because i want have a high speed device .

so the USB_MODE_FULLSPEED macro must be removed from the compiler options.

in this situation ,code is don't work correctly,

device just can revice USB_INTCTRL_DISCONNECT and USB_INTCTRL_RESET interrupte.

how to configure the high-speed (device mode)?

the attach file is our sch,


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>