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.

Unable to connect to TMDXEVM6670LE using CCS 5.0.1

Other Parts Discussed in Thread: TMS320C6670

Hi All,

I am working on TMDXEVM6670LE board and using CCS 5.0.1, i have made a sample application program which i compiled using the specified configuration files.I am using the onboard emulator XDS100, i have been using the standard gel files provided by the TI CC670l.gel, when i try to run my program i am not able to connect to target. I am getting error 

Error connecting to the target:
Cannot access register at 0x00000000
(Error -2131) @ 0 (0x0)

When i try to connect to the target, i had referred through the discussions i configured the path of gel files correctly but still i am not able to connect to target.Could some one provide some information on whether i am missing something?

My current configuration is attached in mail.

I have another strange error in my linker.cmd file below is my source of linker.cmd

-heap 0x8000
-stack 0x1000
/*-l../../../lib/dsplib.a66 */
MEMORY
{
L2SRAM (RWX) : org = 0x800000, len = 0x80000
MSMCSRAM (RWX) : org = 0xc00000, len = 0x400000
DDR3 (RWX): org = 0x80000000, len = 0x10000000
}

SECTIONS
{
.text: load >> L2SRAM
.text:touch: load >> L2SRAM

GROUP (NEAR_DP)
{
.neardata
.rodata
.bss
} load > L2SRAM

.far: load >> L2SRAM
.fardata: load >> L2SRAM
.data: load >> L2SRAM
.switch: load >> L2SRAM
.stack: load > L2SRAM
.args: load > L2SRAM align = 0x4, fill = 0 {_argsize = 0x200; }
.sysmem: load > L2SRAM
.cinit: load > L2SRAM
.const: load > L2SRAM START(const_start) SIZE(const_size)
.pinit: load > L2SRAM
.cio: load >> L2SRAM
xdc.meta: load >> L2SRAM, type = COPY
}

When i try to build my program i am getting error 

"../linker.cmd", line 44: error: L2SRAM memory range has already been
specified
"../linker.cmd", line 44: error: L2SRAM memory range overlaps existing memory
range L2SRAM
"../linker.cmd", line 45: error: MSMCSRAM memory range has already been
specified
"../linker.cmd", line 46: error: DDR3 memory range overlaps existing memory
range DDR2

Could you provide some inputs on this?

Regards

Gowtham

  • Gowtham,

    Please refer to the Hardware setup for the C6670 EVM and ensure that your switch settings are for No boot in the development environment.

    For the linker error that you are seeing, it appears the Memory section is being defined somewhere else in the build, perhaps in the XDC platform definition or BIOS settings. Can you let us know if you are build a SYS BIOS project(project contains a .cfg file)?

    Can you try to comment out the memory section and see if the build goes though

    Regards,

    Rahul

  • Gowtham,

    If your board part number is indeed TMDXEVM6670LE, then it has an XDS560v2 Mezzanine emulator. You must connect to and use that emulator and not the XDS100 that is on the main board.

    CCSv5.0.1 is very old in terms of CCSv5 releases. Newer versions may have fixed problems with emulation. Please upgrade your CCS version to CCSv5.3 or the latest CCSv5.4, and be sure to also update your emulation drivers.

    Connecting to the target does not require the use of a GEL file. The GEL file will not come into use until after the connection is established.

    Regards,
    RandyP

  • Hi Rahul,

    I did the a the instructions as mentioned in the link but still i am not able to connect. I was able to resolve compilation issue by commenting the sections of memory. I am unable to connect to the emulator still have the same issue.

    Regards

    Gowtham

  • Hi Randy,

    I started with a hello world project, i choose the target configuration as XDS560v2 Mezzanine emulator and device as C6670.

    Below is the XML file, 

    <configuration XML_version="1.2" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0">
    <instance XML_version="1.2" desc="Blackhawk XDS560v2-USB Mezzanine Emulator_0" href="connections/BH-XDS560v2-USB_Mezzanine.xml" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0" xml="BH-XDS560v2-USB_Mezzanine.xml" xmlpath="connections"/>
    <connection XML_version="1.2" id="Blackhawk XDS560v2-USB Mezzanine Emulator_0">
    <instance XML_version="1.2" href="drivers/tixds560icepick_d.xml" id="drivers" xml="tixds560icepick_d.xml" xmlpath="drivers"/>
    <instance XML_version="1.2" href="drivers/tixds560c66xx.xml" id="drivers" xml="tixds560c66xx.xml" xmlpath="drivers"/>
    <instance XML_version="1.2" href="drivers/tixds560cs_dap.xml" id="drivers" xml="tixds560cs_dap.xml" xmlpath="drivers"/>
    <platform XML_version="1.2" id="platform_0">
    <instance XML_version="1.2" desc="TMS320C6670_0" href="Devices/C6670.xml" id="TMS320C6670_0" xml="C6670.xml" xmlpath="Devices"/>
    <device HW_revision="1" XML_version="1.2" description="C66x core" id="TMS320C6670_0" partnum="TMS320C6670">
    <router HW_revision="1.0" XML_version="1.2" description="ICEPick_D Router" id="IcePick_D_0" isa="ICEPICK_D">
    <subpath id="subpath_0">
    <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" id="C66xx_0" isa="TMS320C66XX">
    <property Type="filepathfield" Value="E:\TI\program_evm\gel\evmc6670l.gel" id="GEL File"/>
    </cpu>
    </subpath>
    <subpath id="subpath_1">
    <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" id="C66xx_1" isa="TMS320C66XX">
    <property Type="filepathfield" Value="E:\TI\program_evm\gel\evmc6670l.gel" id="GEL File"/>
    </cpu>
    </subpath>
    <subpath id="subpath_2">
    <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" id="C66xx_2" isa="TMS320C66XX">
    <property Type="filepathfield" Value="E:\TI\program_evm\gel\evmc6670l.gel" id="GEL File"/>
    </cpu>
    </subpath>
    <subpath id="subpath_3">
    <cpu HW_revision="1.0" XML_version="1.2" description="C66xx CGEM+FP CPU" id="C66xx_3" isa="TMS320C66XX">
    <property Type="filepathfield" Value="E:\TI\program_evm\gel\evmc6670l.gel" id="GEL File"/>
    </cpu>
    </subpath>
    </router>
    </device>
    </platform>
    </connection>
    </configuration>
    </configurations>

    Still when i try to debug i get C-2131 error.

  • Gowtham,

    It is good you are using the XDS560v2 Mezzanine emulator. I was confused about that from the first post.

    When you have the Target Configuration file open in the CCS Edit perspective, click the Test Connection button in the middle of that window. Does it show any failures?

    Please upgrade to the latest CCSv5 release and update your emulation drivers. Please let us know if that improves your connection success.

    Regards,
    RandyP

  • Hi Randy,

    I upgraded CCS to 5.4 and i noticed some problems in test connection as mentioned below

    --------------------------------------------------------

    This utility has selected a 560/2xx-class product.
    This utility will load the program 'bh560v2u.out'.
    E_RPCENV_IO_ERROR(-6) No connection: emulator was not found
    Download failed for file C:\Program Files\Texas Instruments\ccsv5\ccs_base\common\uscif\xds560v2.out

    An error occurred while soft opening the controller.

    -----[An error has occurred and this utility has aborted]--------------------

    This error is generated by TI's USCIF driver or utilities.

    The value is '-250' (0xffffff06).
    The title is 'SC_ERR_ECOM_EMUNAME'.

    The explanation is:
    An attempt to access the named emulator via USCIF ECOM has failed.

    -------------------------------------------------

    Could you let me know if i am missing some configuration or should i install some additional drivers for the emulator.

    Regards

    Gowtham

  • Gowtham,

    Did you also upgrade your emulation drivers and Keystone emupack? Please see the thread here for instructions. Please reply back with the version of the emulation drivers and emupack you have installed.

    The emupack is included with the files from the download site for the MCSDK 2.x.

    Is your USB cable plugged into the mezzanine board or the lower connector on the main board?

    Regards,
    RandyP

  • Hi Randy,

    My emulation drivers are as follows

    XDC: 3.25.00.48

    EMUPACK: 1.0.1.0

    I have plugged my USB in lower board using the XSD100 v2 as emulator for lower connector and XDS 560 mezzanine for upper board. I am unable to connect using either of them.

    Regards

    Gowtham

  • Gowtham,

    If your board part number is indeed TMDXEVM6670LE and it has an XDS560v2 Mezzanine emulator, then you must connect to and use that emulator on the mezzanine card and not the XDS100 that is on the main board. Do not connect to the XDS100 on the main board.

    Please upgrade your emulation drivers and Keystone emupack. See the thread here for instructions. Please reply back with the new version of the emulation drivers and the new version of the emupack you get after upgrading. EmuPack for KeyStone1 should be at least 1.0.6.0.

    Regards,
    RandyP

  • Hi Randy,

    I upgraded my emulation drivers and now it is working fine. Thanks for your help.

    Regards

    Gowtham