where does printf print to?

12 Sep 2011

Hey because I am new to this C++ an Mbed stuff, when i see the examples theres a lot of printf statements to help the coder know where the code is, bur where du i see these statements when I am testing my Mbed??

For example:

int main(){

printf("Where does this go, and how do i se it when running my program?");

return 0; }

hi, If i understand, your problem is that you don't unknown how see the printf output. This messages can be seen through hyperterminal in windows or minicom in linux. You must connect to serial port (/dev/ttyACM0 or /dev/ttySx)

greetings

13 Sep 2011

Roberto Sainz Aja Sainz Maza rsainzaja wrote:

hi, If i understand, your problem is that you don't unknown how see the printf output. This messages can be seen through hyperterminal in windows or minicom in linux. You must connect to serial port (/dev/ttyACM0 or /dev/ttySx)

greetings

Does this hyperterminal read through the USB connection, or the serial connection?

Is there a toturial/guide on how to connect to the Mbed to read the printf?

13 Sep 2011

Hi

For serial output you must install the mbed serial drivers (or the serial port won't show up).

Btw i found a more capable emulator than old Hyperterminal which gave me lots of headaches when it kept locking serial ports after disconnecting, forcing reboots.

YAT-2.0 (found at http://sourceforge.net/projects/y-a-terminal/files/YAT%202.0/) is a very nice replacement that works with more hardware than hyperterminal.

wvd_vegt

13 Sep 2011

Seems like I should get my eyes fixed..

theres a guide about it on this same page... http://mbed.org/handbook/SerialPC

Tnx for the feedback guys..