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.

Enabling JTAG Debug on DM6467

Other Parts Discussed in Thread: TMS320DM6467

Dear Experts,

                    I am unable to start the DM6467 in the JTAG debug mode for the DSP. I have been trying to set the Switch setting (SW3) according to the doc here (TMS320DM6467 Technical Reference Sec 3.4.3). I have also set EMU0 and EMU1 to HIGH. But I keep getting the following error when starting the CCS

Error connecting to the target:
Error 0x80000260/-1137
Fatal Error during: Execution, Initialization, OCS,

It appears that the target is being held in reset.  This may be
due to Wait-In-Reset (WIR) configuration set by the EMU0=0
and EMU1=1 pin settings.  If this is the case, DISCONNECT
all CONNECTED devices including icepick and then select
RETRY to clear the WIR configuration.

Please guide me if I have missed out on anything. Also it would be helpful if somebody who has got this working mentions the steps to achieve it.

-Regards

Vallabha

 

  • What JTAG emulator are you using?  XDS510, XDS560...

  • Are you getting this error with the ARM926 or with the C64x+? Assuming this is on the C64x+ than if you are connecting to the C64x+ immediately than you will get this error, you have to use the DM6467 GEL file to release the DSP from reset at which point you will be able to connect to it. For example, open up CCS and you should get the parallel debug manager window listing the cores on the DM6467, first just connect to the ARM926 and open its CCS window (double click on it), than from here go to the GEL menu and select one of the boot modes from Davinci HD DSP. After doing this you should be able to connect to the C64x+. If you do not already have GEL files enabled for the board in your CCS setup you can get them from the Spectrum Digital site here.

    Just a tip, you can connect with CCS even if you are in a boot mode that still boots U-Boot if you can connect fast enough with CCS (I load CCS with the board unpowered which gets an error than I power it up and hit retry immediately), though setting the boot mode like the EVM manual says is the easiest (most likely to succeed) way.

  • Thanks for all the replies. It is working now :)

    PS Juan: Im using the Blackhawk 560M USB JTAG.

    PS Bernie: I have one more query. Although I was able to use the DSP in debug mode using the JTAG but I was not able to do the same for the ARM968 (in HDVICP). When I try to connect to ARM968_0 I got the following warning message

    Warning:
    Error 0x40000220/-2062
    Warning during: Execution, OCS,
    Cannot halt the processor

    Board Name: Blackhawk USB560m  - DM6467 Emulator
    Cpu Name: ARM968_0

    -Regards

    Vallabha

  • I am also using the 560m, though in my case I was able to connect to all 4 cores so this should be possible, the first thing that comes to mind is the GEL file, and making sure it is in your CCS setup though you likely already have that. Additionally I was able to connect with my SW3 dip switches all set off on my rev D EVM, so it could also be a boot mode issue.

  • Hello, everybody,

    I have similar problem. When I trying to connect to DM6467 ARM926 core in Parallel Debug Manager via XDS510PP, I obtain following message:

    Error connecting to the target:
    Error 0x80000240/-1159
    Fatal Error during: Initialization, OCS, 
    Unable to determine target endian mode
     
    Sequence ID: 0
    Error Code: -1159
    Error Class: 0x80000240
    I/O Port = 378
     
    Board Name: DAVINCI_HD_PP
    Cpu Name: ARM926

    I downloaded latest drivers from  Spectrum Digital, all SdConfig tests passing successful, EMU0 and EMU1 are set to "0", boot mode is "0000".

    With this emulator (XDS510PP) I connecting to DM642 without any problem.

    Please, tell me what I doing wrong???

     

    Thanks for any advice,

    AndreyT.

  • If SDConfig ran ok, you are mostly there.

    I assume you are using CCS 3.3 correct?  If so, downloading the lastest drivers from Spectrum Digital (http://support.spectrumdigital.com/ccs33/ ) and choose 'DM6467 XDS510 Emulator' (this is the PP version) during CCS setup. 

  • Juan Gonzales said:
    If so, downloading the lastest drivers from Spectrum Digital (http://support.spectrumdigital.com/ccs33/ ) and choose 'DM6467 XDS510 Emulator' (this is the PP version) during CCS setup. 

    (Emphasis mine) This is incorrect. The XDS510 Emulator is the old TI ISA card and not the SD XDS510PP. I believe the proper board configuration is 'DAVINCI HD EVM XDS510PP-ICEPICK EMULATOR'

  • Yes, I'm using CCS 3.3.In CCS Setup i selected "DAVINCI HD EVM XDS510PP EMULATOR".

    My emulator is quite old, it have only LPT interface - may be it's a problem. But with DM642 it works OK, even using CCS 3.3.

    When I selecting in CCS Setup "DAVINCI HD EVM XDS510PP-ICEPICK EMULATOR", something going wrong too... I see

    Error connecting to the target:
    Error 0x80000244/-2131
    Fatal Error during: Register, Initialization, OCS, 
    Cannot access register at 0x00000000
     
    Sequence ID: 0
    Error Code: -2131
    Error Class: 0x80000244
    I/O Port = 378
     
    Board Name: DAVINCI_HD_PP_ICP
    Cpu Name: IcePick

    Looks like it trying to connect to IcePick first, but can't do it... :(

  • I got out the XDS510PP and tried connecting to the DM6467 EVM, I was able to connect successfully with the configuration below, I am running CCS 3.3.82.10 and the latest Spectrum Digital emulation drivers as of a couple months ago (I am less up to date on the SD drivers as I usually use a Blackhawk USB560m).

    Also note that it worked with the XDS510PP Plus (top in image below), the older XDS510PP plain emulator (bottom in image below) did not connect properly, I belive it may not be supported on these newer boards.

  • Bernie, thanks a lot for your investigation. It was very helpful. Now I'm almost sure what was wrong in my tryings.

    My emulator is really "plain". Later I hoped that it's not a problem, but looks like it is.

    I'll try to find some newer emulator (510plus or 560) and than post here final of this story.

    Thank you again. )

    AndreyT.

  • I am sorry to hear that you may have to get a newer emulator, though it is good to know we have the same results. The plain old XDS510PP has been around a long time and I am not sure how much support it is getting for newer products, though on the other hand it is possible that mine is just showing its age and there is something else wrong with it in this case (though I did test it on an older CCS 3.1 C6416DSK setup successfully). Before you buy a new emulator you may want to contact Spectrum Digital to see what they have to say in regards to their driver support for the plain XDS510PP versus the XDS510PP plus.

  • You may want to check votlage of the target and whether the PP supports the I/O. There are some TMDSADP1414 or TMDSADP1420 adapters available which can provide voltage translation from the the TI e-store. There is a handly list here: http://tiexpressdsp.com/index.php?title=JTAG_Connectors#Adapters

  • Dear Bernie,

    I am using ASSY 509350 Rev. F EVM, 560m JTAG. I could not connect to ARM 968. The "Cannot halt the processor" error appears.

    I downloaded the latest GEL files from Spectrum digital website and loaded the same in the CCS setup.

    All the SW3 DIP switches are set to OFF.

    Can you please suggest what else might go wrong?

     

    Thanks,

    Siva

     

  • Siva said:
    Can you please suggest what else might go wrong?

    A quick trick to try to connect to boards that have trouble connecting is to hold the reset while connecting which should prompt a 'target is being held in reset' error, and than releasing the reset simultaneously with clicking on the retry/connect button again. Often this will let you connect even in cases where the memory it is trying to boot from is trashed without actually changing the boot modes, and may be worth a shot in this case.

  • I have zhe same questions with Posts 29  . now I use the DM6467 board and SEED-XDS560 USB JTAG.    I was able to use the DSP in debug mode using the JTAG but I was not able to do the same for the ARM968 (in HDVICP). When I try to connect to ARM968_0 I got the following warning message:

    Warning:
    Error
    0x40000220/-2062
    Warning during: Execution, OCS,
    Cannot halt the processor

     

    Board Name: DM6467_xds560
    Cpu Name: ARM968_0

    Abort:  Close Code Composer Studio.
    Retry:  Try to connect to the target again.
    Cancel:  Remain disconnected from the target
    Diagnostic: Run diagnostic utility.

     

    Warning:
    Error 0x40000220/-2062
    Warning during: Execution, OCS,
    Cannot halt the processor

     

    Board Name: DM6467_xds560
    Cpu Name: ARM968_1

    Abort:  Close Code Composer Studio.
    Retry:  Try to connect to the target again.
    Cancel:  Remain disconnected from the target
    Diagnostic: Run diagnostic utility.

    and I have let all SW3  turn off   and both  arm_gel and dsp_gel have been loaded.  can you tell  how can I resolve the problem?

    (I am a Chinesen,and my English is not well,if have some error with grammar,please tell me )

  • Hi all,

    I've almost same problem with CCS4 and DDEVM6467 with Blackhawk XDS560 emulator. Thie error occurs:

    ---

    Error connecting to the target:
    Error 0x80000260/-1137
    Fatal Error during: Execution, Initialization, OCS,

    It appears that the target is being held in reset.  This may be
    due to Wait-In-Reset (WIR) configuration set by the EMU0=0
    and EMU1=1 pin settings.  If this is the case, DISCONNECT
    all CONNECTED devices including icepick and then select
    RETRY to clear the WIR configuration.

    If this is a multi-core system, the master CPU may not be
    releasing the DSP/MCU from reset.  Please check your
    configuration in CC_setup and/or your GEL file to ensure that
    nothing is blocking the DSP/MCU from being released from reset

    ---

    Of course, I've a new GEL files from spectrumdigital website, but something is wrong :( Can anyone help me?

     

    Thanks a lot,

     Paul