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.

BOOSTXL-BUCKCONV: Loading '.js' files in scripting console will not work with CCS 20.2.0

Part Number: BOOSTXL-BUCKCONV
Other Parts Discussed in Thread: SFRA

Tool/software:

Hello, according to the previous topic, also the loading of '.js' files is not working as intended. I tried to load e.g. 'setupdebugenv_lab1.js' with CCS 20.2.0 but it did not work. Scripting console is giving following output:

js:> //AddWatchWindowVars Build 1
undefined
js:> expRemoveAll()
Uncaught ReferenceError: expRemoveAll is not defined
js:> //Inverter Variables
undefined
js:> expAdd ("TINV_lab.TINV_enum_lab",getNatural())
Uncaught ReferenceError: expAdd is not defined
js:> expAdd ("EPwm1Regs.TZFLG",getNatural())
Uncaught ReferenceError: expAdd is not defined
js:> expAdd ("TINV_clearPWMTrip",getNatural())
Uncaught ReferenceError: expAdd is not defined
....
js:> expAdd ("TINV_temp_C_sensed_pu",getNatural())
Uncaught ReferenceError: expAdd is not defined
js:>

Also in the help of scripting console the function 'expAdd' is not available anymore. In CCS 12.8.1 everything is fine with no problems. If you need further input, please let me know.

  • Hi Aaron,

    The design guide was created with CCS v12 and below, so the steps will not be exactly the same as in CCS v20. I reviewed the available commands in the scripting console and the custom expression commands are not currently supported in the latest version of CCS. The most straightforward way to accomplish the commands is to manually add the variables to the watch window during the debug session. You can copy them directly from the setupdebugenv_lab1.js by opening the .js file with right clicking and opening with the text editor

    Regards,

    Peter

  • Sure, but with CCS v20 the current .js files will give the mentioned errors from above. Since also the SFRA is not starting and so onwith v20 (ticket is here: https://sir.ext.ti.com/jira/browse/EXT_EP-12187) we need to wait for the update. Up to now i switched to v12 where the other tools are currently working with no problems.

  • Hi Aaron, 

    I meant instead of using the javascript functions which aren't currently supported, you can manually add the watch expressions. For example in the provided code snippet you sent, the watch variables would be TINV_lab.TINV_enum_lab, EPwm1Regs.TZFLG, TINV_clearPWMTrip, and TINV_temp_C_sensed_pu

    Regards,

    Peter