9 years, 3 months ago.

Where will I see the output?

The compilation of the program was successful. But I don't see the output.

I am using Mac OS X so I had to use a workaround, I just opened the Arduino IDE, selected the corresponding Serial Port and then used the Serial Monitor.

posted by Erik Arndt 22 Jun 2015

Very good serial terminal for Mac OS http://freeware.the-meiers.org

posted by Dmitry Suhamera 22 Jun 2015

4 Answers

9 years, 3 months ago.

have a look here:

https://developer.mbed.org/handbook/SerialPC

Accepted Answer

Thanks for the link.. It answers my question

posted by Shravan Raghu 22 Jun 2015
9 years, 3 months ago.

Serial pc(SERIAL_TX, SERIAL_RX);

You can check SERIAL_TX/SERIAL_RX definitions in your micro's pinnames.h.

Or simply use Serial pc(USBTX, USBRX);

Then you can see the ouput from USB/USART port by TeraTerm or other utilities.

SERIAL_TX/RX are identcial to USBTX/USBRX. STM legacy issue (they didn't follow the standard, then they changed to the mbed standard, and then they decided to support both).

posted by Erik - 18 Jun 2015

Thanks for the reply. But I still didn't get the solution. How can I see the output on a USB flash drive?

posted by Shravan Raghu 18 Jun 2015

With the correct drivers installed on your computer the mbed looks like both a USB drive and a serial port at the same time.

See the link in Maxime Teissier's answer for details.

posted by Andy A 19 Jun 2015
9 years, 3 months ago.

I haven't used the Nucleo or the 'printf'. printf is used to display data to a serial terminal. You won't see it on a USB flash drive - that is a bulk storage device for files. [I haven't looked at the program itself - just going by the title and the other suggested answers] Your last post regarding the USB flashdrive is confusing. and needs clarification

I'm guessing he means the USB drive on the PC that the mbed looks like.

posted by Andy A 19 Jun 2015
9 years, 3 months ago.

I am using Mac OS X so I had to use a workaround, I just opened the Arduino IDE, selected the corresponding Serial Port and then used the Serial Monitor.