HI guys,
I am using an XDS510 USB2.0 emulator to debug a self-design C6414T board. In the board, the C64x is power up with Boot mode: HPI boot. (EMIFB pin 19:18 with fixed Pulldown/pullup resistor.) There's ARM in the board to load DSP program from HPI interface.
Before doing any type of real work, I tried to connect DSP with emulator.
First, I hold ARM in a dead loop, and not touch DSP anymore once it power up and reset DSP. Then, reset emulator and connect to DSP. This connection operation is success without doubt. I could load the DSP code, and do some simple test. All thing seems to be good. I could disconnect and reconnect DSP core without failure.
But, once I use the "reset cpu" in CCS debug menu, and the DSP has been reset by this emulator RESET operation. I still could load and run program if I don't disconnect emulator from target.
However, once the emulator disconnect from DSP after "reset cpu", I couldn't connect the DSP anymore. Never!
The error code is
Error connecting to the target:
Error 0x80000240/-1156
Fatal Error during: Initialization, OCS,
Invalid data was scanned by the emulation controller.
Verify the board setup to make sure the scan chain is properly
defined.
If the setup is correct, then 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.
I/O Port = 240
Board Name: C64xx Rev 1.1 XDS510USB 2.0 Emulator
Cpu Name: CPU_1
Abort: Close Code Composer Studio.
Retry: Try to connect to the target again.
Cancel: Remain disconnected from the target
Diagnostic: Run diagnostic utility.
To solve the problem, I have to power cycle the board or Reset ARM, which trig ARM to generate an Reset signal to DSP.
More interesting thing is I then attempt to use ARM to load DSP program. Once ARM write the DSP program, and trig HPIC to boot DSP. The DSP program seems to run successfully, (LED blink as expected). And if I tried to connect to DSP with emulator, I would get the same CCS error as above. I further change the ARM program to just write HPI program, not trig HPIC. The emulator connection is success. So, it seems that the operation of write HPIC to trig HPI boot must change something, which leads to the emulator fail to connect.
What does this error message really mean? Why kind of reason could lead the emulator fail to connect to DSP when the DSP program is running? In both case, the DSP program seems to running normally. But, the emulator fail to halt and connect it.
Any comment or reply is welcome, thanks advance!
Jeff
