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.

CCS: Running CCS5.3 simulator on a Linux server as part of a Git repository



Tool/software: Code Composer Studio

Hi,

I am trying to run CCS 5.3 simulator on a Linux server.  The installation was run first in a local server and finished succesfully. I was able to run an example without any problem.  However, I tried to take the folder where the simulator is installed and copy it to a folder on a Git server (without getting installed, just copied) so that developers can download a copy of the simulator using a "repo init" command.  The siumulator stpped working at this point (using the copied version).  Every time I call the simulator I get the following error:

js: "ccs_base/scripting/examples/loadti/main.js", line 90: uncaught JavaScript runtime exception: TypeError: instance is not a function, it is org.mozilla.javascript.NativeJavaPackage.

Any thoughts?

  • Hello,

    Cesar Aguilar said:
    However, I tried to take the folder where the simulator is installed and copy it to a folder on a Git server (without getting installed, just copied) so that developers can download a copy of the simulator using a "repo init" command.  The siumulator stpped working at this point (using the copied version).

    I'm trying to understand what is happening here. So you checked in the entire ..\ccsv5\ccs_base\simulation folder into version control, is that correct. And when other developers download a copy of the whole folder from the repo, do they copy it into their existing CCSv5 installation and try to use it from there? Or are they trying to use it some other way? Please provide more details

    Thanks

    ki

  • Hello,
    I haven’t heard back from you, I’m assuming you were able to resolve your issue. If not, please post a reply with an update below (or create a new thread).

    thanks,
    ki
  • Hi Ki,

    1- CCS was installed in a local linux server. A test executable was run with the simulator with no issues.

    2- The entire ccs5 directory was tar into a file and sent to developer.

    3- Developer untar the file into a new directory inside his Git view in Linux. The whole ccs5 simulation was verified to be contained in the new directory.

    4- Developer tried to run the same executable but got the error reported above.

    Cesar

  • Cesar,
    Thanks, I understand now.

    When you refer to "simulator", are you referring to just running simulations from the "loadti" utility? Or are you actually using the simulators via the IDE? Are you looking for just command-line execution via loadti?

    Thanks
    ki
  • Hi Ki,

    Yes, it just means running the simulator from the loadti utility.  I am just interested in command-line execution. No IDE.

    Regards

    Cesar

  • It sounds like the environment was not set up correctly to run DSS (CLASSPATH, etc). This is likely since CCS was simply zipped and extracted into a different environment. Please make sure the dss.sh file is correct and the classpaths are being exported properly.