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.

AM3359: Automation inside Console of Code Composer

Part Number: AM3359

Hi all,

I have a need to read and write text to the console automatically. My customer has created a program on the chip, which communicates via the console in CCS. I was going to originally try to automate this via Windows GUI automation, but looking into it I can only access the console by selecting it and not reading or writing. I viewed the console via Accessibility Insights to see what is possible and only selection is. I can use "Keyboard entry" instead of text editing to enter what I need to the console, but I cannot readback with the Windows UI automation SDK.

So now I'm looking at the 'scripting' the CCS has. I haven't found a way to communicate via the console yet, but was wondering if anyone knew the commands or if this is even possible. There was another option I was thinking of exploring which didn't work, but again I might not know what I'm doing... I wanted to print the console to xml via the scripting console then I can readback with some other program and automate the rest with the Windows UI SDK. 

Any thoughts on this? 

Thanks in advance.

  • Hello,

    What "console" in CCS are you referring to? I assume you are referring to the terminal view?

    There are multiple scripting environments in CCS. The primary one is DSS, which is used to control the debugger. You can send DSS commands in the scripting console. There is also the scripting console which supports DSS and also some additional custom console commands. There is also GEL, which is a limited scripting environment mostly for simply debug actions.

    Thanks

    ki

  • Hi thanks for answering. I am talking about the console highlighted in yellow. This is where I have to interact with my unit through CCS. Our customer gives us a BIN file so we can't debug, just communicate via console. We have no interest in debugging, what our customer loaded is actually a programming tool that's loaded on the chip. We just need to select through a menu (Send characters such as "1" "5" "c:/temp/path") via console.

  • Oh, I see. The target program is outputting messages to the C I/O console and waiting for user input. You are trying to somehow automate this user input to the C I/O console. Is that correct? If so, CCS doesn't have anything for this kind of functionality that I am aware of.

  • That is correct. Hmm that's unfortunate. I will try to contact support to see if they have any ideas.