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.

CODECOMPOSER: Scripting Console and using the function openAnalysisView in Javascript

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: TMS320F28379D

Hi TI Expert Team, 

With reference to :   CLA Hands On Workshop - Part 3 The Workshop | TI.com Video,   

we would like to try it out on TMS320F28379D Launchpad.

Using CCS version 10.4..0.00006, we were getting error when trying to open a single time Graph in Javascript

with the Scripting Console using an absolute path in the second argument :  openAnalysisView('Single Time','C:/ti/CLA_HandsOnWorkshop_Camtasia2017/solution/ccs/fft_mag.graphProp')

        js:> loadJSFile "C:\ti\CLA_HandsOnWorkshop_Camtasia2017\solution\ccs\SetupDebugEnv.js"

        java.lang.IllegalArgumentException: Illegal secondary id (cannot be empty or contain a colon) (C:\ti\ccs104\ccs\eclipse\configuration\org.eclipse.osgi\481\0\.cp\resources\dvtviews.js#131)

        ===>   [Comment]  :  wondering how to specify the absolute path without having a colon for the drive such as "C:" 

Because of the error, we then move the "SetupDebugEnv.js" and "fft_mag.graphProp" to the CCS project workspace and modify the second argument 

to use relative, instead of absolute, path of  openAnalysisView  to  :     openAnalysisView('Single Time', 'fft_mag.graphProp'). 

        But again this does not make the error go away. The system returned with a new error saying : 

        js:> loadJSFile "C:\Users\rrntuguest\workspace_v100\F28379D_CLAHandsOn_Solution\SetupDebugEnv.js"

        java.lang.IllegalArgumentException: Illegal view mode (C:\ti\ccs104\ccs\eclipse\configuration\org.eclipse.osgi\481\0\.cp\resources\dvtviews.js#131)

        ===>   Up to this point, we do not know what to do and how to change the view mode. Can someone advise a remedy please ? 

Thinking maybe the bug (if there was) will have been fixed in the latest version of CCS, so we upgraded our CCS from version 10.4.0.00006 to 

CCS version 11.2.0.00007. 

         However, the latest version also does not free from error. It gave another new error saying :

         When running the Scripting Console and using the function openAnalysisView('Single Time','C:/fft_mag.graphProp') I get following error:

         ReferenceError: "GSSScripting" is not defined. (C:\ti\c2000\ccs1120\ccs\eclipse\configuration\org.eclipse.osgi\139\0\.cp\resources\dvtviews.js#130)

         Apparently, this new error had been reported by somebody else and was seen in version 11.0 and 11.1, but so far had received no fixed. 

         JIRA Entry :   [EXT_EP-10753] Scripting Console: openAnalysisView command fails with error: "GSSScripting is not defined" - Software Issue Report (SIR)

We want to see the CLA in the workshop working and we do not care about the CCS version so long it is working. 

Can someone advise a fix for  "illegal view mode"  or at least which CCS version was used for the CLA workshop ? 

Thank you and looking forward to receiving further advice on the remedy. 

Djony Pamudji

 

  • Hello,

    openAnalysisView('Single Time','C:/ti/CLA_HandsOnWorkshop_Camtasia2017/solution/ccs/fft_mag.graphProp')

            js:> loadJSFile "C:\ti\CLA_HandsOnWorkshop_Camtasia2017\solution\ccs\SetupDebugEnv.js"

            java.lang.IllegalArgumentException: Illegal secondary id (cannot be empty or contain a colon)

    This error usually occurs when the path for the graphProp file is invalid (file not found). Please double check that this path is valid: C:/ti/CLA_HandsOnWorkshop_Camtasia2017/solution/ccs/fft_mag.graphProp

    thanks

    ki