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.
11 years, 6 months ago.
Cannot get change serial to PA_2 and PA_3 on Nucleo F401RE
if I define serial as :-
Serial s(PA_2, PA_3);
If I do the following
s.printf("Hello\n\r");
The serial still comes out on the PC link.
On the board PA_2 and PA_3 are defined as TX and RX.
What am I doing wrong?
1 Answer
11 years, 6 months ago.
PA_2 and PA_3 are the stdio serial pins: they are the ones used for the PC link, so it comes out on both PC and those pins at the same time.