Hi
i've installed the following version of ccsv5 (C:\Program Files\Texas Instruments\ccsv5\ccs_base_5.0.3.00028)
i'm trying to run the loadti.bat file provided in the ccsv5 installation (C:\Program Files\Texas Instruments\ccsv5\ccs_base_5.0.3.00028\scripting\examples\loadti\loadti.bat)
and i'm getting quite a few errors. We had this running with ccsv4 but no luck with ccsv5.
First when i run the following command i get the getenv() not support error.
C:\rmb\ccsv5_tm814\S1>C:\Program Files\Texas Instruments\ccsv5\ccs_base_5.0.3.00028\scripting\exa
mples\loadti\loadti.bat -v --no-profile -c tisim_tm814x.ccxml my_app.out
Exception in thread "main" java.lang.Error: getenv no longer supported, use prop
erties and -D instead: LOADTI_PATH
at java.lang.System.getenv(System.java:689)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:20
1)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:64)
at org.mozilla.javascript.gen.c1._c4(C:\PROGRA~1\TEXASI~1\ccsv5\ccs_base
_5.0.3.00028\scripting\examples\loadti\main.js:85)
at org.mozilla.javascript.gen.c1.call(C:\PROGRA~1\TEXASI~1\ccsv5\ccs_bas
e_5.0.3.00028\scripting\examples\loadti\main.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java
:106)
at org.mozilla.javascript.gen.c1._c0(C:\PROGRA~1\TEXASI~1\ccsv5\ccs_base
_5.0.3.00028\scripting\examples\loadti\main.js:9)
at org.mozilla.javascript.gen.c1.call(C:\PROGRA~1\TEXASI~1\ccsv5\ccs_bas
e_5.0.3.00028\scripting\examples\loadti\main.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:3
37)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:275
5)
at org.mozilla.javascript.gen.c1.call(C:\PROGRA~1\TEXASI~1\ccsv5\ccs_bas
e_5.0.3.00028\scripting\examples\loadti\main.js)
at org.mozilla.javascript.gen.c1.exec(C:\PROGRA~1\TEXASI~1\ccsv5\ccs_bas
e_5.0.3.00028\scripting\examples\loadti\main.js)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:500)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:4
22)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:388)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:379)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:176)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:97)
at org.mozilla.javascript.Context.call(Context.java:540)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:447)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:159)
at org.mozilla.javascript.tools.shell.Main.main(Main.java:137)
so to temporarily get around this error i removed all references to getenv() which was in all cases trying to get a path for a .js file to be loaded
and just loaded the local version of the .js from the current directory. Eventually i will set up a properties file to store these paths, but then i get the following error
C:\rmb\ccsv5_tm814\S1>C:\Program Files\Texas Instruments\ccsv5\ccs_base_5.0.3.00028\scripting\exa
mples\loadti\loadti.bat -v --no-profile -c tisim_tm814x.ccxml my_app.out
js: "C:\PROGRA~1\TEXASI~1\ccsv5\ccs_base_5.0.3.00028\scripting\examples\loadti\m
ain.js", line 91: uncaught JavaScript runtime exception: TypeError: instance is
not a function, it is org.mozilla.javascript.NativeJavaPackage.
line 91 is:
dssScriptEnv = Packages.com.ti.ccstudio.scripting.environment.ScriptingEnvironment.instance();
i guess i am surprised the unmodified version of loadti.bat provided in the ccsv5 installation does not seem to work as it did for ccsv4, unless i am missing something obvious. I searched for info regarding such errors on the TI site but found nothing. Any help would be greatly appreciated.
thanks
rob