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.

StarterWare USB CDC problems

Other Parts Discussed in Thread: OMAPL138, AM1808

I've got some problems with the USB CDC example of the StarterWare package for OMAPL138 and Code Composer 5 (and an XDS100v2 JTAG emulator).

I) Since the project didn't have a .gel file to initialize the DDR controler I used an old one from Logic. On other projects, the file worked good, however, since I used it with the USB example, it gets reproducible stuck at two lines in the PLL configuration (setting GOSET in PLLCMD and PLLEN in PLLCTL). After outcommenting these lines it does work somehow... The annoying thing is that the problem now also occurs in other project, where it worked before.

II) Any time I terminate the debug session, power cycle the OMAP and reconnect via the green bug I get an Icepick error (-2131 @ 0x0). The only way I found to resolve this is to restart Code Composer.

III) getting past this mayhem, the USB CDC example doesn't work. It can't initialize the USB and always gets stuck in an infinite loop in function UsbPhyOn() in file 'usbphyGS60.c'.

IV) After replacing the USB initialization with some self written code, the example reaches the main loop. Anyway, a connected PC recognizes an 'unknown device', so the CDC code doesn't seem to register the device right.

  • Bjorn,

              Please try with the gel file from \\StarterWaere\tools\gel

    Regards

    Baskaran

  • Hello   Baskaran,

     

    Baskaran Chidambaram said:

             Please try with the gel file from \\StarterWaere\tools\gel

    I tried, but I get the same error: Target failed to write memory at 0x01C11138 (PLL0_PLLCMD), and a consecutive Data verification failure at 0xC1080000 in the DDR. The latter one of course is a logical consequence of the failed PLL initialization.

     

    Regards,

    Björn

  • which target board are you using.? Is it the AM1808 EVM from LogicPd or a custom board?

     

    regards

    baskaran

  • Hello Baskaran,

    I'm using a custom board. However, until a few weeks ago, I had no problems executing the gel files; this is a recent bug.

    And no, we didn't change anything on the hardware during the last weeks.

    Regards,

    Björn

  • The gel file supplied with StarterWare package assumes DDR start address as 0xC108000. For your custom board the DDR address might be different, so you may need to update the gel file for new DDR address.

    You have mentioned that the same set of files worked earlier. In that case I suspect your board went bad - to confirm this you can try with other binaries other than StarterWare.

     

    Regards

    Baskaran

  • Hi Baskaran

     

    Baskaran Chidambaram said:

    The gel file supplied with StarterWare package assumes DDR start address as 0xC108000. For your custom board the DDR address might be different, so you may need to update the gel file for new DDR address.

    Our DDR memory lies at 0xC0000000 to 0xC3FFFFFF.

    Still, the DDR problem most likely is just a follow up of the real problem, that is, that the gel file fails to write bits GOSET in PLLCMD and PLLEN in PLLCTL. Any ideas about this?

     

    Baskaran Chidambaram said:

    You have mentioned that the same set of files worked earlier. In that case I suspect your board went bad - to confirm this you can try with other binaries other than StarterWare.

    Programs do work on the board, no matter if they are loaded from JTAG or SPI-Flash. It's the gel file that doesn't work.

     

    Regards,

    Björn

  • do you still have this issue

    Regards

    Baskaran

  • Hello there!

    Baskaran Chidambaram said:

    do you still have this issue

    Yes an no.

    I)
    I've out-commented some lines in the GEL file, and now it works again. Which is shouldn't, as far as I understood it, but I've quit wondering about CC4 related issues a long time ago.
    So I think you can count this as solved.

    II)
    It's still there, but I got used to it.

    III), IV)
    Never got any respose 'bout these problems. After trying for some more time, I through the CDC example away and started again from scratch. This time it worked, so I don't need any help here any more, too.

    Regards,
      Björn

    Regards,
      Björn

  • Thanks for the update.

    For II i suggest you to post query in CCS forum as we (StarterWare team) have less insight into the issue.

    Regards

    Baskaran