Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
STDOUT to IDE
20-11-2015, 09:50 AM,
#1
STDOUT to IDE
How do I get text from my Pinguino 32 micro to the stdout window of the IDE?
A simple Serial.printf("Hello World"); would be nice Smile

Thanks
Reply
20-11-2015, 10:31 AM,
#2
RE: STDOUT to IDE
CDC.printf

John
Reply
20-11-2015, 10:59 AM, (This post was last modified: 20-11-2015, 11:01 AM by jwzumwalt.)
#3
RE: STDOUT to IDE
I am using Rev959 with Win7 64bit and there does not appear to be any output.
[Olimex 32bit micro brd]
(The reason I am using V959 is other versions do not seem to work.)
Reply
20-11-2015, 02:59 PM,
#4
RE: STDOUT to IDE
Don't forget to open a terminal on your PC as minicom for linux or hyperterminal for Windows because in the Pinguino IDE we have no integrated serial or CDC terminal as found in Arduino IDE.
The STDOUT in the Pinguino IDE is a file to log compilation warning or error messages.
Serial.printf or CDC.printf work well when opening a PC terminal and selecting a suitable COMxx or /dev/ttyxxx, according your OS.
Bye
André
Reply
20-11-2015, 06:26 PM,
#5
RE: STDOUT to IDE
Thanks for your help. Still no luck.
I tried two different win terminal programs set to com1 9600baud 8N1

I tried both test programs  at http://wiki.pinguino.cc/index.php/CDC.print
and
the test program for Serial.print at http://wiki.pinguino.cc/index.php/Printf
Reply
20-11-2015, 07:50 PM,
#6
RE: STDOUT to IDE
Do you connect your terminal to the good virtual COM ? Check in the Device Manager(cf Configuration Panel) a new COM exists when your Pinguino is finally uploaded. This is this new COM that is the good virtual COM.
Put your CDC.printf(" Hello ...") in the loop in order that the print is repeated.

If you have a serial USB adapter cable it would be easier to get a responsive terminal using The Serial Library

For me with a relative experience it is yet difficult to work with the CDC library because of synchronisation troubles in Windows. With patience it works.

Bye André
Reply
20-11-2015, 09:33 PM,
#7
RE: STDOUT to IDE
Once again, I would like to thank you for your assistance.

And yes, I did not have a virtual port setup because other
IDE's I have used provided the term window (I thought that
was what the F8 window was !#@&)

I spent an hour trying several trial software packages and
none were worth spending the money.

Would you please explain exactly how you have your system
set up?
Reply
20-11-2015, 11:38 PM,
#8
RE: STDOUT to IDE
CDC.printf works for me, so the board is outputting correctly, but I am on Linux so don't have Windows driver etc problems.

Jhn
Reply
21-11-2015, 05:29 AM, (This post was last modified: 21-11-2015, 10:05 AM by jwzumwalt.)
#9
RE: STDOUT to IDE
OK Everyone, I got it working.

It was apparently a combination of factors.

To assist others, here is what I found.

**** With Win7 ****
   You do not need the virtual terminal,
   but the terminal program must be started after
   the Pinguino is running or it won't find the new
   USB port the Pinguino will make. It is the new
   port com# that the terminal window must be
   connected to.

This is now working with the CDC.xxx, I have
not tried other output commands.

Thanks for all the help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)