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.

"Error initializing emulator"

Other Parts Discussed in Thread: OMAP-L138, TMS320C6748

using a Spectrum Digital XDS510 USB with Logic PD OMAP-L138/TMS320C6748 EVM with a TMS320C6748 SOM-M1

I get this message many, many, many (did I say many?) times when I try to launch the debugger, debug the active project, rebuild and reload.  Spectrum Digital responded quickly but really had no idea how to help - just generic stuff like changing the USB cable, plug EVM power into the same outlet as the computer because of ground problems, and the ever magical "unitstall CCS, drivers, clear out the registry of TI and SDI entries and reload CCS 4.1.2."

but...it still happens...a lot.  with no rhyme or reason it will work after power, USB, or driver cycling.  sometimes it helps to close and reopen CCS.  or power, USB, and driver cycling followed by closing and reopening CCS.  occasionally it will not work untill I reboot.  this is of course extremely disruptive to getting any actual work done.

does anyone have any other ideas?

  • Hi,

    have you tried exchanging the USB cable. I had a similar issue in the past and the reason was a bad quality USB cable ....

    Kind regards,

    one and zero

  • yes, I followed Spectrum Digital's advice including uninstall, wipe out everything I could find on disk and in the registry, then reinstall

  • When I get that error, I usually follow this guide and it helps:

    http://support.spectrumdigital.com/guides/regclean_guide/

    ki

  • interesting.  Spectrum Digital did not mention this page.  I did do most of this on my own. there was no change to the problem.

  • believe it or not... on my computer, if Gconf open then I get the error.  as soon as I close Gconf the emulator runs.  no idea how this could be connected but ha been verified multiple times.

  • Kurt,

    I experienced this a few times with different target configurations in CCSv4.1.2, but unfortunately sometimes a reconnect would fix this, other times a CCS restart... Therefore I could never get a consistent behaviour that allowed me to report this as a bug. 

    Does your system shows this behaviour constantly? If so, it happens just with specific projects/TCF files or specific emulator/device combinations? Does it happen with different workspaces? If you happen to have a different CCS version installed, does this happen with this other version as well?

    The answers could help get more information to further investigate this.

    Thanks in advance,

    Rafael

  • Hi Rafael,

    I do not have time to explore this more.  But, I did run into the problem again with a completely different project.  It occurred when I left the TCF editor window open.  As soon as I closed the configuration editor, the emulator ran and tghe program loaded.   As far as I am concerned that is the problem and I know how to fix it.

    Kurt

  • Kurt,

    I understand and thanks for reporting this; unfortunately I couldn't find this issue again in my projects but I will keep trying. I will let you know if/when I get a similar behaviour and file a bug. In the meantime the workaround is to close the .TCF editor.

    Best regards,

    Rafael

  • Kurt said:
    occasionally it will not work untill I reboot.  this is of course extremely disruptive to getting any actual work done.

    No Kidding. I've had to reboot about 4xs in the last two days. This really bites.

    My "Error Initializing emulator" happens on CCSv4.2 using the XDS510PLUS and Spectrum Digital Emulation 4.2.2.0.Target is C6472

    I get the error sometimes after I restart CCS after a crash (and its been doing it a lot lately). Next  I check SDConfigEx and it outputs ">> Could no open emulatino connnection".

    I tried uninstalling the Device Manager's "SD USB Based Debug Tools" spectrum digital driver, then replugging in the XDS and re-installing the driver. This is at least quicker than having to reboot. Alas, it didn't work.

    After I reboot, SDConfigEx outputs

    ** Emulator Test **
     $$ EmuProductName=XDS510USB
     $$ EmuPortAddr=0x510
     $$ EmuPortMode=USB
     $$ ProductId=510
     $$ ProductVersion=86
     ** Emulator Scan Test
       -- Found JTAG IR length of 6
       -- Found 1 JTAG device(s) in the scan chain

    And CCS works again.Yeah!

    I'm amazed that killing CCS AND re-installing the driver didn't work.(Microsoft suggests this as a fix to USB issues- http://support.microsoft.com/kb/310575 )

    CCS is really hosing up something in windows XP.

    And I forgot to mention how CCS wants to recompile EVERYTHING after the crash. See my ranting here

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/50822/262097.aspx#262097

    Cheers

  • Hi,
    I use CCS 6.1.2 for EVM5515 from Spectrum Digital. I got this error when everything was working properly. I created a new workspace as suggested in the below link to resolve the issue.
    processors.wiki.ti.com/.../Troubleshooting_CCSv6
    Vaishravana