967 views
in GUI Development by
Is it possible to redirect output, i.e. from trace, to a serial port to read it by putty?

2 Answers

0 votes
by

Hi,

I assume you are working with LPCXpresso54608 - there you can work with a serial connection for all debug messages like trace commands. Is this what you are looking for?

Best regards,

Manfred.

by
Hi Manfred,

yes I'm looking for that. I can see the console output from your example link.

However, if I put some trace commands in the code, the output of this trace is not visible in my putty session.
by
Which API call are you using? EwPrint()?
by
I'm using the chora trace command.
by
Do you see the messages at the beginning of the application (as shown in the screenshot)?
by
Yes, I do. I see the lines with the closing [OK].
0 votes
by

Hi.

Please try the following: Take the provided example 'HelloWorld', open the class 'Application::Application' and insert the following line within the slot method 'OnTouch':

trace SimpleTouchHandler.CurrentPos;

If you start the application within the Prototyper, you can see the trace messages within the Log window.

Now generate the code and compile/link/flash the example on the target. If you open a terminal and connect it with the serial output of the board, then you should get the following output:

I just verified the above steps on the LCPXpresso54608 target.

If you do not see the trace messages (but the first starting messages) - maybe you did some changes within the module ewextrte.c?

Embedded Wizard Website | Privacy Policy | Imprint

...