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/TMS570LC4357: Unit Testing for the functions

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

 Can I call a function defined in the CCS project using java script?

My fuction consists of an argument and return value and  would like to pass the argument and see the return value of the function in the java script.

How can I do this in java script? 

I am following the attached url https://e2e.ti.com/support/tools/ccs/f/81/t/740083?CCS-TM4C123GH6PM-Accessing-Variables-from-CCS-in-js-script, but I am getting an error regarding the function readWord().

I am attaching my screenshot. Thank you.

 

  • Hello,
    How are you calling the memory.readWord() API? It looks like you are just passing a single parameter (I assume the address). All the readWord() APIs have at least two parameters, with the first parameter being the memory page. For a CPU without a paged memory system, you can just pass in '0'.

    Thanks
    ki