Other Parts Discussed in Thread: TMS320F28335, TMS320F28069, CONTROLSUITE
Hi,
I'm running a TMS320F28335 on a custom board as part of an inverter. The software is a non-bios project (which was adapted from an older F2812-project) and runs fine. But I've got a serious debugging problem, which is as follows: The DSP is loaded with code (everything in internal or external RAM) and run in real-time mode. Everything is ok so far. As I want to check some variables I use the watch window and a breakpoint in main, which is configured to update all windows.
1) If the breakpoint is enabled and I activate the PWM-outputs (which is done via custom hardware and GPIOs), I get one of the following error messages (no guarantee for completion) and most of the time the connection from Code Composer Studio 3.3 to the F28335 breaks down. Sometimes also main() is stopped.
The error messages:
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.
Error: Error 0x20000024/-1156 Severe Error during: Register, Execution, Lost processor clock. Device may be operating in a low-power mode. Do you want to bring it out of this mode?
Can't Run Target CPU: Error 0x80000022/-1041 Fatal Error during: Memory, Execution, 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.
Error: Error 0x20000020/-2064 Severe Error during: Execution, Cannot read processor status.
Trouble Removing Breakpoint with the Action "Update All Windows" at 0xe103: Error 0x00000008/-2042 Error during: Break Point, Cannot set/verify breakpoint at 0x0000E103
Can't Run Target CPU: Error 0x20001020/-1135 Severe Error during: Execution, Target, Unrecoverable emulation error
Trouble Reading PC Register: Error 0x00000004/-1137 Error during: Register, 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
Error: Error 0xA0001020/-1041 Error during: Execution, 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.
Can't Run Target CPU: Error 0x00000022/-1156 Error during: Memory, Execution, Lost processor clock. Device may be operating in a low-power mode. Do you want to bring it out of this mode?
Trouble Removing Breakpoint with the Action "Update All Windows" at 0xe103: Error 0x00000008/-1066 Error during: Break Point, Cannot set/verify breakpoint at 0x0000E103
Can't Run Target CPU: Error 0x00000028/-1066 Error during: Break Point, Execution, Cannot set/verify breakpoint at 0x0000E103
Trouble Removing Breakpoint with the Action "Update All Windows" at 0xe103: Error 0x00000008/-1066 Error during: Break Point, Cannot set/verify breakpoint at 0x0000E103
Can't Run Target CPU: Error 0x00000020/-2134 Error during: Execution, Execution error.
2) If I deactivate the breakpoint and start the PWM, it seems that everything works fine (at least the interrupts work), but I fear that main might be stopped as well at some point after I activated the PWM-outputs. After the start of the PWM it's possible to activate the breakpoint without termination the connection instantly, though it definitely happens after some time (seconds ... minutes).
The debugger is a Spectrum Digital XDS510pp Plus (DC-decoupled via the Spectrum Digital SPI110LV)...
As I couldn't find any information about those error messages, I though somebody here might have a hint or an idea how to solve this.
Thanks