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, 5 months ago.
SerialPC
Hello,
I see that nobody has reported this, so I may be doing something stupid but I don't understand what. I compile, download and run the following program
include the mbed library with this snippet
#include "mbed.h" Serial pc(USBTX, USBRX); // tx, rx int main() { while (1) { pc.printf("Hello World!\n"); wait(.2); } }
open either screen (sudo screen /dev/ttyACM0) or minicom (sudo minicom and make sure that it's set to 9600, 8bits, 1 stop bit, no parity) and I see maybe 20-30 lines being output on the console (Debian testing) and then it hangs. Sometimes the string is messed up. Firmware on the board is 0202 but the new revision does not mention serial communication.
Has anybody any suggestion?
Thanks, michele
Ah, it seems that at least with minicom I need to add a carriage return (Ctrl-a z u) and it mostly works fine, i.e. it doesn't hang after the first approx 20 lines.
posted by Michele Zaffalon 14 Jun 2014