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.
Hi,
I just started code composer studio (4.2.4.00033) and i'm using the 32kb-limited version (C2000) for my graduation project.
When running the example included with the IQmath library (from ControlSuite) I got a lot of errors similar to:
js:> expAdd "Dlog.Xwaveform" getQValue(24)
ReferenceError: "expAdd" is not defined.
When pressing tab in the scripting console I get:
js:>
cls disableLog enableLog execCmdFile help listJSFiles loadJSFile loadKeyword print services setWindowBuffer unloadJSFile unloadKeyword
To summerize: I am missing basic commands in the scripting console and therefore I cannot use commands like "expAdd"
This problem has been discussed here: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/94349/328344.aspx#328344
and the solution presented is to reinstall ccs4.2 in a different directory. So I reinstalled ccs in a different directory, but when running scripting console, I still have the problem described above.
My question is whether these commands are only available in the full licensed version? Or, what do I need to do to obtain these commands?
Help is appreciated very much, because this scripting console seems to be a very nice feature in CCS and otherwise I would have to manually add graphs and manually add watch variables etc... when debugging.
Hi Mark,
It seems like the commands are missing. There are couple things you can try to see if it helps.
- Try running "eclipse -clean" or use a new workspace, maybe things are corrupted.
- Make sure com.ti.ccstudio.scripting.gss_4.2.2.201106061600.jar file in this folder ...\ccsv4\eclipse\plugins. All UI scripting commands (.js) files are defined in this .jar file. In fact you can extract the .js files and load it into the scripting console as a workaround.
You can use winzip to open the jar file and extract the .js files under com.ti.ccstudio.scripting.gss_version/resources/javascript/*.js
use the loadJSFile command to load the javascript files into the console.
Please keep us informed.
Best Regards,
Lisa
Hi Lisa,
Thanks for the fast response.
- Running "eclipse -clean" in command window of windows restarted CCS, but did not work
- New workspace did not work either
The second solution works, but needs special attention because when I performed for instance the command:
loadJSFile C:\Program Files (x86)\Texas Instruments Deux\ccsv4\eclipse\plugins\com.ti.ccstudio.scripting.gss_4.2.2.201106061600\resources\javascript\workbench.js
Invalid argument count.
when using "" or '' i get the error: path does not contains a valid JavaScript file
I put the files in a different directory (without spaces and ()) and loaded the files using loadJSFile and i got all the commands now.
So, somehow not all commands are loaded when restarting CCS, but using loadJSFile works
Thanks for the help