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.

Connecting to Logic PD OMAP L138 eXperimenter Kit using XDS510 Emulator

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

CCS: 4.2.4.00033

Spectrum Digital XDS510 USB, RevB.

Logic PD L138 eXperimenter Kit: BaseBoard: Part #1013527 REV 5.  L138 SOM: 1014652 REV B

Following app note: 1010208B_AN492_Using _CCSv4-2-4_with_SOM-m1.pdf and this wiki page:

http://processors.wiki.ti.com/index.php/How_to_connect_to_the_OMAP-L138/C6748_EVM_board_using_CCS%3F

I am trying to establish connection to the kit using a Spectrum Digital XDS510 USB Evm. 

I have the DIP switches on SW7:5 and SW7:8 in the ON position. I launch the target configuration without errors.  I then do a Target-->connect Target operation and I get the following error:

C674X_0: Error connecting to the target: Connect to PRSC failed, -6305

I am only attempting to use the C6748 portion of the L138, using the attached ccxml file (C6748_eXp_510USB.ccxml).

I am able to connect to the kit using the embedded XDS100v1 and XDS100v2 emulators (and run a test program from the BSL) without issue.

Also, using SDConfig to test emulator connection passes:

** Checking emulator/eZdsp scan connection

** Emulator Test **

 $$ EmuProductName=XDS510USB

 $$ EmuPortAddr=0x510

 $$ EmuPortMode=USB

 $$ ProductId=510

 $$ ProductVersion=84

 ** Emulator Scan Test

   -- Found JTAG IR length of 6

   -- Found 1 JTAG device(s) in the scan chain

 

 

  • Shawn,

    Since you are using the OMAPL138 SOM, did you make sure to connect to the ARM9 first, release the DSP from reset and then connect to DSP, as documented in the wiki page?

    When connecting to the ARM + DSP cores in the OMAP-L138, follow these steps:

    1. Launch the Target Configuration created above
    2. Select the top line of ARM9_0 and right-click Connect Target
    3. Use the menu Scripts->Wake Cores->Wake DSP
    4. Select the top line of C674x_0 and right-click Connect Target
    5. Now you are ready to start loading code and start debugging


    Please also see this related thread which in turn has links to other similar threads which may be helpful as well.

  • OK, I was a bit confused, I only care about using the DSP core, so I thought I could connect to it using the "DSP only" instructions from that page, especially since I was able to connect to the DSP only using the embedded emulator, WITHOUT doing the steps shown above.  (If I am remembering correctly, I did a similar thing with the L137, I set up a configuration that listed just the c674x device and connected directly to it, without worrying about the ARM).

    But the behavior I'm seeing is similar to a DSP that is not coming out of reset, so this seems like it could be the problem.  Any idea why the embedded emulator can talk directly to the DSP without using an OMAP device in the configuration?

    In anycase, I would like to try the steps above, but that leads me to another problem:  In these steps in the wiki, when I am creating the custom configuration:

    "In CCSv4 when you create your target configuration file, select:

    1. Spectrum Digital XDS510USB Emulator Connection for XDS510;
    2. OR Blackhawk USB560 Emulator connection for XDS560;
    3. OR Texas Instruments XDS100v2 USB Emulator Connection for XDS100 version 2.

    Select OMAPL138 for Board or Device."

    I select the Spectrum Digital XDS510USB emulator, but no OMAP devices show up in the device list. (this is true even if I select the XDS100v2 on board emulator, it doesn't show the L138 as a board or device I can choose from.)

    So my new question is this: what do I have to install or update so that OMAP devices show up in the device list?

    thanks for your help.

    -S

  • Shawn S. said:
    I only care about using the DSP core, so I thought I could connect to it using the "DSP only" instructions from that page, especially since I was able to connect to the DSP only using the embedded emulator,



    That would be ok for the embedded emulation as you can see described in the page
    http://processors.wiki.ti.com/index.php/How_to_connect_to_the_OMAP-L138/C6748/AM1808_EVM_board_using_CCS%3F#XDS100v1_embedded_emulation_-_DSP_only_2

    When using external emulator though, depending on the SOM, you would need to follow the set up process as described in that page.

    Shawn S. said:
    I select the Spectrum Digital XDS510USB emulator, but no OMAP devices show up in the device list.

    This is likely because you did not install OMAP support when you installed CCS. You can re-run the CCS installer, tell it to install on top of your existing installation (specify the same install directory), select custom install, and choose the OMAP devices. After this support is added you should be able to see the OMAP devices listed in the target configuration.

  • AartiG, thanks for your help, I've made good progress.  I found a OMAPL138.xml file and was able to select that device and use the DSP + ARM (OMAP-L138 SOM) instructions from the wiki page to connect to the ARM and next to the DSP.

    After reading a bit more about the L138 eXp kit and L138 SOM module from Logic PD, and understanding how the ARM/DSP interact on the L138, I found an alternative approach which is a bit less combersome when using an external Emulator.  The key item is to let the L138 boot from the SOM-M1 SPI flash so as to launch the UBOOT app. This ARM app automatically takes the DSP out of reset.

    In a nutshell, these steps will also work when using the Logic PD L138 SOM-M1 module on the L138 eXp Kit:

    (1) Set all bits of the the baseboard DIP SW 7 to OFF. This chooses SPI boot mode. (DO NOT SELECT EMU Debug Boot mode)

    (2) Create a USB5510 configuration that chooses the C6748 device, use the c6748.gel gel file (as in the "how to connect wiki page')

    (3) Power up the eXp kit.

    (4) Launch the c6748 USB5510 configuration.

    (5) On the target menu item: Target-->Connect Target

    All is good and no need to first connect to the ARM, then run the script, and then connect to the DSP.  (in fact you won't even see the ARM core as a device).

    Again, this is only useful for situations where you only care about writing DSP code on a L138-SOM-M1 Logic PD module.

    -Shawn

     

  • Awesome. Thanks for the update (and the additional information about booting from SPI) and glad that you're making good progress in moving ahead.

  • Just a quick update,

    I thought I was being clever by setting the boot mode to SPI, so the ARM runs and takes the DSP out of reset to simplify the connect to target DSP processor.  HOWEVER, I have found that although the process works for running simple programs on the 6748 DSP (like those in the logic PD BSL examples), this approach does not work when trying to run examples from the PSP package, for example pspdrivers_01_30_01\packages\ti\pspiom\examples\evm6748\audio. 

    In order for those more complicated examples to run, I must use an emulator configuration that includes both the ARM and the DSP and use the two step connection approach, with the DIP SW set to EMU Boot.

    -S