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.

Communicating with standard io using DSS

Other Parts Discussed in Thread: SYSBIOS

Hello Everyone,

I am using scanf and printf (Standard IO) in my code. When i connect with the debugger to the target, i can see the output of the printf and give an input that is read by scanf using the console in code composer. But what if i want to do the samething using dss javascript ? Where i can get the prints to parse them and send a response that will be read by scanf in the target ?

I had searched and tried several things. At first, thought that RTDXOutputStream and RTDXInputStream may help. But the script crashes when i create a new RTDXOutputStream and give it an instance of RTDXSession and a channel name. It seems that i cannot figure out the channel name default configuration by SysBios.

Simply, How can i interact with the target standard IO in dss like i do it in the console of code composer studio ?

Thanks in advance,