Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 11 months ago.
Where will I see the output?
The compilation of the program was successful. But I don't see the output.
4 Answers
10 years, 11 months ago.
have a look here:
https://developer.mbed.org/handbook/SerialPC
10 years, 11 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 18 Jun 201510 years, 11 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
10 years, 11 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.
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 2015Very good serial terminal for Mac OS http://freeware.the-meiers.org
posted by Dmitry Suhamera 22 Jun 2015