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.

HELP! DM6446 connected with Blackhawk USB560m emulator, Error 0x00000020/-1060 occured!

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I was using Blackhawk USB560m to download binary file to DM6446 and debug it. I set a break point when the DSP was running. Then I closed CCS 3.3 and turned off the DSP board. However, when I turned on the DSP and tried to run downloaded program on the DSP through CCS 3.3 and Blackhawk USB560m emulator, an error occured. The picture above shows the error message. Also, the messages appeared in red on CCS are as follows.

"Trouble Halting Target CPU: Error 0x00000020/-1060 Error during: Execution,  An unknown error prevented the emulator from accessing the processor in a timely fashion. It is recommended to RESET EMULATOR.  This will disconnect each  target from the emulator.  The targets should then be power cycled or hard reset followed by an emureset and reconnect to each target.   Sequence ID: 15 Error Code: -1060 Error Class: 0x00000020"

"Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint opcodes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging."

I turned off the DSP board, the Blackhawk emulator and closed CCS 3.3 and tried again. But it did not help. I also reset the emulator using CCS 3.3. It did not help, neither.

Binary files can be downloaded to DSP. But it seemed that the DSP was totally out of control. It did not respond to any instructions like run and stop.

Does anyone know how to solve this problem?

Thanks in advance.

Rooter

 

  • You may get better answers if you move this posting to the DaVinci forum instead of the C6000 forum, or I can move it for you. I say this because you do need to be aware of what the ARM9 is doing w.r.t. the C64x+ core when you are trying to debug the part.

    First things first, please make sure you have the latest SR for CCS 3.3 and the latest BH drivers from blackhawk-dsp.com. Probably not the problem, but if it turns out to be, you can save yourself a lot of time very easily.

    The worst-case full reset of everything would include rebooting the PC, disconnecting the emulator at the USB and JTAG sides, and power cycling the emulator and the board. Reconnect using the order recommended in the Getting Started Guide that came with the emulator. It is very rare to need to reboot the PC, but just to make sure you have done everything possible, sometimes it is useful just to start completely clean.

    First Rooter said:
    Binary files can be downloaded to DSP. But it seemed that the DSP was totally out of control.

    You are apparently able to Connect to the DSP core in CCS. And you must have some level of control or visibility. Does this mean you can view Memory and confirm that your "binary files" have been downloaded?

    In the DM6446, the ARM9 has a lot of control over the DSP. Doing any emulation on the DSP requires the ARM9 to first allow it. Some of the ARM9 software may keep the DSP in a reset state whenever it does not have a particular task, of its choosing, for the DSP to be running.

    There are some GEL files in the CCS\boards folder for your EVM; mine are under C:\CCStudio_v3.3\boards\davinci_revd\gel and are named DaVinciEVM_arm.gel and DaVinciEVM_dsp.gel. You may have to connect to the ARM first and run one of the GEL menu functions to enable debug of the DSP.

    And all of this may be explained really well in the Wiki pages or in other threads in the DaVinci forums, or even in the User Guides with the EVM and DVSDK.

  • Hello Randy,

    Thanks a lot for your reply.

    I've installed the latest CCS 3.3, i.e., SR12, with latest Blackhawk emulator driver. But it did help.

    I rebooted PC, disconnected the emulator and power cycled the emulator and the board. But the problem remains.

    I also followed the BH "Emulator Troubleshooting User Guide" and passed all the steps listed there.

    I can "connect" to the DSP through the BH USB560m emulator and "download" programs to DSP. But I can not view the memory in DSP properly. The displayed data were not correct. So I was not able to confirm if the download was successful or not.

    The same program for both DSP and ARM worked well few days ago before something broke down.

    The GEL file I am using is "BH-default.gel".

    I am going to post the question to the forum you suggested.

    Thanks.

    Rooter