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.

Problem with connecting the target

Other Parts Discussed in Thread: TMS320DM6437

I m using CCSv4. I m trying to communicate my target board (TMS320DM6437) with Black hawk USB560bp emulator.

When I try to debug a  simple Hello World program(with main.c and target config file), the IDE is able to launch BlackHawk Emulator

but later while writing the code into the target memory, it gives the following error.

C64XP_0: Trouble Reading Memory Block at 0x20 on Page 0 of Length 0x4: (Error -1190 @ 0x20) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Release 5.0.429.0)
C64XP_0: File Loader: Data verification failed at address 0x00000020 Please verify target memory and memory map.
Error found during data verification.
Ensure the linker command file matches the memory map.

I have also tried changing settings in Target Configuration. Yet no use.

More over in the Target menu, I always find the Connect/Disconnect, debugging options inactive.

Unfortunately there is no Getting Started User guide for CCSv4.

Can anyone please let me know a brief about How to Program/Debug a simple code in my board.

  • The error is likely due to not specifying a linker command file when building your project. If you do not specify a linker command file, the linker will perform some default allocation of code and data which may or may not match up with the actual memory on the target.

    This post tells you where you can get a linker command file for DM6437. Download and add this to your project and rebuild.

    Illyas Hussain said:

    Unfortunately there is no Getting Started User guide for CCSv4.

    Although not specific to getting started with your board, there is a Getting started guide for CCSv4 here that should help you with getting familiar with CCSv4 in general:
    http://processors.wiki.ti.com/index.php/CCSv4_Getting_Started_Guide

     In addition, this wiki page contains a lot of additional details on CCSv4: http://processors.wiki.ti.com/index.php/Category:Code_Composer_Studio_v4

  • Hi,

    The information you provided was pretty helpful. Yet I m stuck in the last part.

    Now, I ve added the linker command file and .GEL file, which on debugging is executed as below

    C64XP_0: GEL Output:
    EVMDM6437 Startup Sequence

    C64XP_0: GEL Output: Setup Cache
    C64XP_0: GEL Output: (L1P = 32K) +
    C64XP_0: GEL Output: (L1D = 32K) +
    C64XP_0: GEL Output: (L2 = ALL SRAM)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup PinMux...
    C64XP_0: GEL Output: (Normal operation)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup Power Modules (All on)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup PLL1
    C64XP_0: GEL Output: (Powering up PLL)...
    C64XP_0: GEL Output: (DSP = 594 MHz +
    C64XP_0: GEL Output: SYSCLK2 = 198 MHz +
    C64XP_0: GEL Output: SYSCLK3 = 99 MHz +
    C64XP_0: GEL Output: Onchip Oscillator)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup PLL2
    C64XP_0: GEL Output: (Powering up PLL)...
    C64XP_0: GEL Output: (VPSS = 54 MHz +
    C64XP_0: GEL Output: DDR2 Phy = 162 MHz +
    C64XP_0: GEL Output: Onchip Oscillator)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup DDR2 (162 MHz + 32-bit bus)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup EMIF CS2 - NOR Flash (8-bit bus)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output:
    Startup Complete.

    C64XP_0: GEL Output: Disable VPSS
    C64XP_0: GEL Output: Clear L2 Cache in DDR Range
    C64XP_0: GEL Output: Setup Cache
    C64XP_0: GEL Output: (L1P = 32K) +
    C64XP_0: GEL Output: (L1D = 32K) +
    C64XP_0: GEL Output: (L2 = ALL SRAM)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Disable EDMA events
    C64XP_0: GEL Output: Setup DDR2 (162 MHz + 32-bit bus)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output:

    C64XP_0: File Loader: Data verification failed at address 0x10808AB0 Please verify target memory and memory map.
    Error found during data verification.
    Ensure the linker command file matches the memory map.

    I doubt few things. Please answer them.

    FASTBOOT, BOOTMODE[3:0], AEM[2:0],AEAW[2:0]. I have all these pins on user configurable jumpers.

    How do I handle these pins? Are they really causing problem?

     

  • Illyas Hussain said:

    Hi,

    The information you provided was pretty helpful. Yet I m stuck in the last part.

    Now, I ve added the linker command file and .GEL file, which on debugging is executed as below

    C64XP_0: GEL Output:
    EVMDM6437 Startup Sequence

    C64XP_0: GEL Output: Setup Cache
    C64XP_0: GEL Output: (L1P = 32K) +
    C64XP_0: GEL Output: (L1D = 32K) +
    C64XP_0: GEL Output: (L2 = ALL SRAM)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup PinMux...
    C64XP_0: GEL Output: (Normal operation)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup Power Modules (All on)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup PLL1
    C64XP_0: GEL Output: (Powering up PLL)...
    C64XP_0: GEL Output: (DSP = 594 MHz +
    C64XP_0: GEL Output: SYSCLK2 = 198 MHz +
    C64XP_0: GEL Output: SYSCLK3 = 99 MHz +
    C64XP_0: GEL Output: Onchip Oscillator)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup PLL2
    C64XP_0: GEL Output: (Powering up PLL)...
    C64XP_0: GEL Output: (VPSS = 54 MHz +
    C64XP_0: GEL Output: DDR2 Phy = 162 MHz +
    C64XP_0: GEL Output: Onchip Oscillator)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup DDR2 (162 MHz + 32-bit bus)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Setup EMIF CS2 - NOR Flash (8-bit bus)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output:
    Startup Complete.

    C64XP_0: GEL Output: Disable VPSS
    C64XP_0: GEL Output: Clear L2 Cache in DDR Range
    C64XP_0: GEL Output: Setup Cache
    C64XP_0: GEL Output: (L1P = 32K) +
    C64XP_0: GEL Output: (L1D = 32K) +
    C64XP_0: GEL Output: (L2 = ALL SRAM)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output: Disable EDMA events
    C64XP_0: GEL Output: Setup DDR2 (162 MHz + 32-bit bus)...
    C64XP_0: GEL Output: [Done]
    C64XP_0: GEL Output:

    C64XP_0: File Loader: Data verification failed at address 0x10808AB0 Please verify target memory and memory map.
    Error found during data verification.
    Ensure the linker command file matches the memory map.

    I doubt few things. Please answer them.

    FASTBOOT, BOOTMODE[3:0], AEM[2:0],AEAW[2:0]. I have all these pins on user configurable jumpers.

    How do I handle these pins? Are they really causing problem?

     

    Currently using

    Emulation Boot (BOOTMODE[3:0] = 0000b, FASTBOOT = 0 or 1)

    Debugging via BH-USB560-bp.

  • The boot mode settings seem ok. I would suggest first trying to run some of the tests that come as part of the Spectrum Digital content for this EVM (http://c6000.spectrumdigital.com/evmdm6437/reve/ - EVM Target Content). These are set up to build and run out of the box. They are set up for CCS 3.3 but you should be able to import them into CCSv4 and the project import wizard should be able to convert the project. Once you get these working, you can move on to creating your own examples using the provided examples as a starting point.

    Also be sure to use the latest version of CCS, v4.2.4 to avail of bug fixes to date.

  • Please explain me the following commands in the linker file. Hope I can modify as per the error I m getting.

    Please rename the file evmdm6437.txt as evmdm6437.gel, linker.txt as linker.cmd

    8321.Files.rar

    /*
     *  Copyright 2006 by Spectrum Digital Incorporated.
     *  All rights reserved. Property of Spectrum Digital Incorporated.
     */

    /*
     *  Linker command file
     *
     */

    -l rts64plus.lib
    -l ..\..\lib\evmdm6437bsl.lib

    -stack          0x00001000      /* Stack Size */
    -heap           0x00001000      /* Heap Size */

    MEMORY
    {
        L2RAM:      o = 0x10800000  l = 0x00020000
        DDR2:       o = 0x80000000  l = 0x10000000
    }

    SECTIONS
    {
        .bss        >   L2RAM
        .cinit      >   L2RAM
        .cio        >   L2RAM
        .const      >   L2RAM
        .data       >   L2RAM
        .far        >   L2RAM
        .stack      >   L2RAM
        .switch     >   L2RAM
        .sysmem     >   L2RAM
        .text       >   L2RAM
        .ddr2       >   DDR2
    }

    Error while loading program:

    C64XP_0: File Loader: Data verification failed at address 0x10808AB0 Please verify target memory and memory map.

    Error found during data verification.

    Ensure the linker command file matches the memory map.