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.

Code composer studio crash when using DSK C6713.



hello,

         I am currently using code composer studio v 3.1 to connect to C6713 DSK. Since I have Win 7 I run the Code Composer Studio in Win XP mode. It works fine most of the time, but some times its crashes giving the following error,

"Trouble running Target CPU: Error 0x800020A0/-1220 Fatal Error during: Execution, Target Communication, Control,  Device driver: Lost USB connection to emulator. You should ABORT and restart to re-establish the USB link.   Sequence ID: 16 Error Code: -1220 Error Class: 0x800020A0
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."

This appears to happen when the PC is doing memory intensive thing like running Matlab code that uses a lot of memory.  Every time this happens I have to shut down the the code composer, the Win XP mode window and unplug and repower the DSK. Can any please suggest if there is a way to avoid this error.

Best regards,

                            Umar Khan.

  • Umar,

    My recommendation from the C67x Single Core DSP Forum is to get a PC with WinXP.

    Since this is a CCS question, you might get better answers from the Code Composer Forum. A Moderator will move it there for you this time.

    Regards,
    RandyP

  • Hello Umar,

    Note that your current configuration was never officially supported. CCS3.x is no longer supported. Neither is running CCS.3x on Windows 7 (even if in XP mode). Hence there is not much official support we can provide.

    Umar Khan said:
    This appears to happen when the PC is doing memory intensive thing like running Matlab code that uses a lot of memory.

    It is possible that it is a PC memory issue but usually when that happens, CCS crashes or hangs. In your case you are seeing a target connectivity issue, like your USB hub went down or something similar. Sounds like you saw the issue when running Matlab. Can you confirm you saw the issue when running some other large program besides Matlab?

    thanks

    ki

  • Hello Ki,

                       It happened about once a day when I had matlab only, but when I installed  Microsofts Visual Studio I got the error almost every single time I connected to the DSP. Then I got a new PC that has 8 cores an 12GB ram and now its the same situation. The error occurs occasionally when I ever run intensive matlab code.

    I guess when lots of things are running the code composer can't talk to the DSP through the USB. Is there a way I disable this communication and enable it only when I need it. This way I can run the intensive matlab code when the code composer is not talking to the DSP.

    Thanks,

                   Umar.

  • Umar Khan said:
    Then I got a new PC that has 8 cores an 12GB ram and now its the same situation.

    This is quite a PC. More than anything I've ever used. I can't imagine it running out of resources to cause CCS problems.

    Are you using the simulink integration with CCSv3.x?

  • hi,

            No  I am not using that. The trouble only occurs if I use matlabs parallel processing toolbox to run all 8 cores in parallel. So for now I doing without the parallel processing, but it would to nice to run parallel processing since that reduces the code execution time a lot.

    Umar.