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.

Exception when running Sd560v2Config

Guru 15580 points

I am trying to install my new SD560v2 emulator. However, when I run SD560v2Config I get an exception below. Can someone please decipher?

See the end of this message for details on invoking 

just-in-time (JIT) debugging instead of this dialog box.

 

************** Exception Text **************

System.NullReferenceException: Object reference not set to an instance of an object.

   at Sd560v2Config.Sd560v2Config.FindLocalPCIPAddress(String& IPAddress, String& SubnetAddress)

   at Sd560v2Config.Sd560v2Config.EthernetFind_Click(Object sender, EventArgs e)

   at System.Windows.Forms.Control.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnClick(EventArgs e)

   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ButtonBase.WndProc(Message& m)

   at System.Windows.Forms.Button.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

 

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

Sd560v2Config

    Assembly Version: 2.2.0.1

    Win32 Version: 2.2.0.1

    CodeBase: file:///C:/Program%20Files%20(x86)/Texas%20Instruments/ccsv4/common/uscif/Sd560v2Config.exe

----------------------------------------

System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Runtime.Serialization.Formatters.Soap

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll

----------------------------------------

System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

 

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

 

For example:

 

<configuration>

    <system.windows.forms jitDebugging="true" />

</configuration>

 

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

 

 

 

  • Mike,

    What Operating system are you running Sd560v2Config utility on?

    Do you have .Net 3.5 framework installed on your system?

    Is the system connected to an network/ does the system have an IP Address?

    When this exception shows up, you can click continue and the GUI should work as expected.

    Shilpa.

  • Shilpa,

    OS = W7

    .NET = 2.0. I would have expected the installer to flag this problem!

    ShilpaByrichetty said:
    When this exception shows up, you can click continue and the GUI should work as expected.

    Well, not exactly. The GUI will run, but when I attempt to find ethernet devices the exception returns. If you are the author if this app, try adding  "try/catch" to prevent ugly exceptions from being thrown, and adding a .NET rev check to the installer. Tsk, tsk.

    Thx,

    MikeH

     

  • Mike,

    Sorry for the inconvienience caused. We'll make sure this is fixed in the next release. Thanks for catching this error.

    Currently this error can be fixed by installing .NET 3.5 framework.

    Shilpa.

  • Shilpa,

    I have verified that I now have .NET 3.5 installed. However, I continue to get the exception. Can you give me a hand figuring out what is wrong?

    Also, is there a way to set a fixed IP address for the emulator instead of DHCP?

    MikeH

     

  • Mike,

    We have not seen this exception before. We'll try to duplicate this issue. Sorry it didn't work on your PC. Can you please explain your test setup in detail.

    There are two ways to find the IP Address of the emulator connected.

    1. If your emulator is connected locally, you can find the IP Address from dtc_conf tab via USB of Sd560v2Config utility. The procedure can be found under section 5.4.2 in the linked document.
    http://support.spectrumdigital.com/ccs40/xds560v2_stm/files/Sd560v2Config_Readme.pdf.

    2. If the Eth_Tab is giving you exceptions, you can try EthAdvanced tab. It takes a while but it should not throw any exceptions.The procedure is in the linked document section 6.3.

    Finally,The procedure for configuring the emulator for static IP can also be found in the above linked document section 7.

    You can also look under http://processors.wiki.ti.com/index.php/XDS560v2_System_Trace for more information.

    Please do let me know if you need any further help on solving your issue.

    Shilpa.

  • Shilpa,

    ShilpaByrichetty said:
    Can you please explain your test setup in detail

    What specifically do you want to know?

    ShilpaByrichetty said:
    If your emulator is connected locally, you can find the IP Address from dtc_conf tab via USB of Sd560v2Config utility.

    This is what I have been doing successfully until now.

    ShilpaByrichetty said:
    The procedure for configuring the emulator for static IP can also be found in the above linked document section 7.

    I have tried this procedure. The utility seems to be stuck (for the past 10 minutes) "booting". What should I do to exit this state? Here is a picture of the screen:

  • I killed the app and the correct (new) IP address seems to be properly installed.

    However, I'm still getting the same annoying exception......