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.

Missing or corrupted application file in CCS5 and Keystone II

Other Parts Discussed in Thread: CCSTUDIO, 66AK2H12

Hello everybody,

I am trying to debug an example application (image_processing) for Keystone II on Code Composer Studio 5.5.0, and I face the following error:

Error initializing emulator:
(Error -2085 @ 0x0)
Internal error: Missing or corrupt application file. Restart the application. If error persists, please report the error.
(Emulation package 5.1.340.0)

I am already "testing" the JTAG connection  (in CCS: "view" -> "target configurations" -> "test connection"), and it works fine. Could you please tell me how to do to further understand/debug this problem?

Best

Paolo

  • Hi Paolo,

    Could you try updating both your TI Emulation package and Keystone packages via 'Help -> Check for Updates'?

    Thanks

    ki

  • Hello Ki,

    thanks for the prompt reply. I tried to do that and a message shows:

    There are no update sites to search. Do you want to open the "Available Software Sites" preferences?

    So I downloaded the update server list as explained in

    http://processors.wiki.ti.com/index.php/Troubleshooting_CCSv5

    I imported the xml file and as I re-run the update I get a message

    No updates were found.

    And of course it still fails launching the debugger.
    Any idea? Isn't there any "log" file or something that let me understand exactly what's the problem?


    Ciao
    Paolo

  • What host OS are you using?

  • Hello Ki,

    I am using Ubuntu 12.04 on a x86_64 machine.

    Yesterday I managed to have it working somehow, and to run the Debugger. Everything goes fine in a first moment, but then when i right-click one of the DSP cores on the board (I have a Keystone II with 4 ARM and 8 DSP) and choose "Connect to target", I see an error in the IDE

    IcePick_D_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

    I tried to reset the board (and the JTAG card) several times, but the error still stands. Where am I wrong?

    Best

    Paolo

  • Paolo Burgio said:
    I am using Ubuntu 12.04 on a x86_64 machine.

    Yes sometimes I have had issues with updates on Linux. It seems to get broken from time to time.

    Paolo Burgio said:
    Yesterday I managed to have it working somehow, and to run the Debugger. Everything goes fine in a first moment, but then when i right-click one of the DSP cores on the board (I have a Keystone II with 4 ARM and 8 DSP) and choose "Connect to target", I see an error in the IDE

    The error is indicating that there may have been a premature disconnect from the target earlier. Where you able to connect before and then prematurely shutdown the debugger? You may need to restart CCS to resolve the issue. Try running CCS with -clean or use a new workspace folder to see if that helps.

    http://processors.wiki.ti.com/index.php/Troubleshooting_CCSv6#General_IDE

    Thanks

    ki

  • Ki,

    thanks for your help. I tried all of the three solutions in the wiki page you sent me, and unfortunately none of them works

    1) if I run ccstudio -clean, the error still appears

    2) both resecting the perspective and switching to a different workspace result in a segmentation fault error, as follows

    flxInitLoad: client has not been protected.
    #
    # An unexpected error has been detected by Java Runtime Environment:
    #
    # SIGSEGV (0xb) at pc=0xc332956f, pid=8595, tid=4149368512
    #
    # Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode linux-x86)
    # Problematic frame:
    # C [libxul.so+0xd5056f] _ZN16gfxAlphaRecovery16RecoverAlphaSSE2EP15gfxImageSurfacePKS0_+0xc9
    #
    # An error report file with more information is saved as:
    # /home0/paolo/hs_err_pid8595.log
    #
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #

    any ideas?

    Paolo

  • Hello Ki,

    I did a small "step ahead". I manage to start the debug sequence (more or less as before), but in the Debug perspective of CCS all of the DSP cores are "(Disconnected: Unknown)". AS i right click on one of them and choose "Connect Target" I see this message

    C66xx_0: Error connecting to the target: (Error -1180 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.1.340.0)

    Any idea?

    Best

    Paolo

  • Which exact keystone device are you using? In some devices the DSP is held in reset by some application processor (ARM) and you need to run a routine to release the DSP from reset (usually via some GEL routine).

  • Hello Ki,

    The device is a (in CCS I choose) "66AK2H12". Code Composer is v5.5.0.

    Thanks for your help

    Paolo