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.
Serial pc stops when target is setup
Anyone is familiar with a strange problem in serial comms?
When i use in the code something like:
Serial pc (USBTX,USBRX); this works fine
but:
Serial pc (USBTX,USBRX); this stops sending to pc.
Serial target(p9,p10); show the message on the target even if i dont want to
if i send a message like this:
pc.printf("Hello world!\n");
the message dont appears on pc, but in the target....
Its driving me crazy!!!!
1 Answer
10 years, 5 months ago.
I assume you are using the lpc11u24. This device has only one physical uart. The last serial port object that you declare will work. The others become inactive. See also the links to related items in the right column of this page.