Hi Andreas,
the problem is certianly not with the USB multilink interface/connection.
If you would run the application without debugger it will work OK. But when the debugger is activated, the MCU is in Special Single chip mode.
Regarding the Special single-chip mode you should know that:
- It is used for debugging single-chip operation, boot-strapping, or security related operations.
- The background debug module BDM is active in this mode.
- The CPU executes a monitor program located in an on-chip ROM.
- BDM firmware waits for additional serial commands through the BKGD pin.
- In special single chip mode the BDM is ACTIVE out of reset – that means the CPU is halted and the BDM firmware is waiting for commands that come from BDM cable.
- The special modes should not be used in final application, that’s for development purposes only.
Regarding your problem, some values/parameter used by the program application are updated by time and fed back to the MCU. So the most probably while stepping through the code, you don't get the actual values and that causes code runaway.
Try using breakpoints between some parts of code and let it run. But breakpoints can also cause similar problems.
Regards,
iggi