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.

OmapL138 USB example(evmomapl138_v1) code initialization failure

Other Parts Discussed in Thread: OMAPL138, OMAP-L138, SYSCONFIG

Hi,

I would like to build a OMAPL138 DSP firmware which activates the USB0 .

For the first stage I'm trying to use the evmomapl138_v1's example "usb".

Environment:

  • LogicPD's Zoom OMAP-L138 eXperimenter Kit.
  • CCS 3.3
  • Gel file: OMAPL138_DSP.gel (from LogicPD site)

The problem:

------------------------------------------------------------
                OMAP-L138 USB Test

Additional Equipment
--------------------
- None

Ghz

  • ------------------------------------------------------------
                    OMAP-L138 USB Test

    Additional Equipment
    --------------------
    - None

     
    Test Description
    ----------------
    This test will perform two checks:
    1) check if it can activate USB VBUS and sense it
    The code enables VBUS and verifies the appropriate bit is set in
    SYSCONFIG to indicate VBUS was detected. A cable should not be inserted during this check.
     
    2) check for the connection of a USB OTG device
    The code will look for a D+ or D- rising edge event which will trigger
    the INTSRCR_SESSREQ interrupt which it polls for. Once detected
    it will determine if the processor is on the A or B side of the cable
    and the speed of the device.
    In case an OTG cable is not available, the test also switches to
    check for a connection to a USB host (plug the board into a computer's USB port).
    It alternates between the OTG and HOST check every 2 seconds.
    ------------------------------------------------------------

    Initialize the Required BSL Modules
    -----------------------------------

    Waiting for VBUS low...
    --> USB power enabled

    Waiting for VBUS high...
    --> VBUS is high.
    error initializing usb!

     

    ********** OMAP-L138 TEST FAILED **********

  • Any idea?

     

    Best Regards,

     

    Ghz

  • It could be an issue with the example code. We will look into it.

    Jeff

  • hi, Jeff

    This example is test passed on before. Last I  pull USB port times.

    ::

    Initialize the Required BSL Modules
    -----------------------------------

    Waiting for VBUS low...
    --> USB power enabled

    Waiting for VBUS high...
    --> VBUS is high.
    error initializing usb!

     

    ********** OMAP-L138 TEST FAILED **********

     

    Best Regards.

     

    GHZ

  • Hi,Jeff

    I do a test.

    I single step omapl138EVB test usb. In "evmomapl138_usb.c"'s USB_init(void).

     printf("Waiting for VBUS low...\n");
     USTIMER_delay(500000);
     while ((SYSCONFIG->CFGCHIP[2] & 0x00010000) != 0);

     // Start session
     SETBIT(USB_OTG_DEVCTL, 0x00000001);
     USTIMER_delay(500000);

     printf("--> USB power enabled\n\nWaiting for VBUS high...\n");

     if ((SYSCONFIG->CFGCHIP[2] & 0x00010000) == 0)
     {
        rtn = ERR_INIT_FAIL;  // Fail
     }

     printf("--> VBUS is high.\n");

    This programme Run to"SETBIT(USB_OTG_DEVCTL, 0x00000001);"

    I pull usb port.

    This test is Passed.

    But I measure baseboard HW 's R203 both sides voltage ,no change. I think it should change.

    Sorry.I 'm  bad for english.

    Best regards.

    Ghz

  • The problem seems to be that the PSC for the USB peripheral is not on.

    Make sure that you have both the ARM and the DSP GEL files loaded. When you connect to the ARM, the GEL will turn on all the PSCs including USB. Then connect to the DSP and run the test, which should pass now.

    Jeff