Craig,
This seemed to work, however I am seeing now that I am only able to set the registry options, not able to set the debugger option.
My process is as follows:
app = new ActiveXObject( "VisualDSP.ADspApplication" )
app.Interactive = true
app.Visible = true
session = app.CreateMPSession(...)
(load the project files)
(load the program)
app.ActiveSession.SetPreference("Device0", "HaltEP", 0);
app.ActiveSession.SetPreference("Device0", "HaltIO", 0);
app.ActiveSession.SetPreference("Device0", "MaskISROnStep", 1);
app.ActiveSession.SetPreference("Device0", "MaskIntsOnStep", 1);
app.ActiveSession.SetPreference("Device0", "OnExit", 1);
app.ActiveSession.SetPreference("Device0", "ResetCounters", 0);
app.ActiveSession.SetPreference("Device0", "UseXMLResetVals", 1);
app.ActiveSession.SetPreference("Device0", "VerifyWrites", 0);
(which are pulled from the preferences list in regedit after doing the settings manually)
The problem is that when I go to Settings->Target Options I am not seeing the "Mask interrupts during step" box checked, nor am I seeing the interrupts ignored during a "run" command, which makes it seem as if the command is not working properly. ( I do see that the script is setting the regedit settings are exactly as if i were to have set them manually.)
If i run my script and then check the "Mask interrupts during step" box manually before performing a "run" command, I am able to see the interrupts ignored.
I am not sure what could be causing this not to work, any ideas?
Thanks, David