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.

Accepted Answer

Thanks a lot bro. Very kindly your comment.

posted by alex leindecker 16 Nov 2013