Hi,
I'm running CCS 3.3.82.13 with a 334 target system and a SD 510pp JTAG emulator. When I first go to program after opening CCS, I frequently get API errors when programming, such as the following:
Trouble Writing Memory Block at 0x9040 on Page 0 of Length 0x800: Error 0x00001002/-1156 Error during: Memory, Target, Lost processor clock. Device may be operating in a low-power mode. Do you want to bring it out of this mode?
Trouble Writing Memory Block at 0x9000 on Page 1 of Length 0x1: Error 0x00001002/-1156 Error during: Memory, Target, Lost processor clock. Device may be operating in a low-power mode. Do you want to bring it out of this mode?
Trouble Writing Memory Block at 0x9014 on Page 1 of Length 0x2: Error 0x00001002/-1156 Error during: Memory, Target, Lost processor clock. Device may be operating in a low-power mode. Do you want to bring it out of this mode?
Trouble Writing Memory Block at 0x9012 on Page 1 of Length 0x2: Error 0x00001002/-1156 Error during: Memory, Target, Lost processor clock. Device may be operating in a low-power mode. Do you want to bring it out of this mode?
Trouble Reading Register: Error 0x00001004/-1041 Error during: Register, Target, Device driver: Problem with the Emulation Controller. 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.
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.
Multiple disconnect/reset emulator/connect and programming retries result in the same problem.
Immediately after getting this failure, if I open SDConfig and run the diagnostics using test loops of 0 (continuous run), I don't get any failures after letting it run for a while (sample dump below). These results seem to indicate my hardware is working and there's really not any clock issues as stated in your CCS API error message.
** Checking for a valid emulator/eZdsp
** Running diagnostic scan on EmuProductName=XDS510PP
** Checking emulator/eZdsp scan connection
Performed 286 test loops with 0 errors.
Then if I go back to CCS and try programming, everything works fine for the rest of the day! What could be the problem?
Thank you,
Bob