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.
9 years, 6 months ago.
the serial port of the Arch Max boards is invalid
when I got the boards, I tested the 3 serial ports,but they did not work,did you have met this problem?
Question relating to:
2 Answers
9 years, 6 months ago.
If the led is working then your serial port is working, you need to set your terminal baudrate to 9600 to see the output. Baudrate defaults to 9600 if you don't set a value in your program.
9 years, 6 months ago.
How do you test them? Can you share your test program?
- include "mbed.h" Serial com1(PA_9,PA_10); Serial com1(PC_6,PC_7); Serial com1(PB_6,PB_7); Serial com3(PB_10,PB_11); DigitalOut myled(LED1);PB3 Serial pc (USBTX,USBRX); int main() { while(1) {
com1.printf("this is a test01\r\n");
pc.printf("\r\n HTTP Server \r\n");
com2.printf("test01\r\n");
com3.printf("test01\r\n");
myled = 1;
wait(0.5);
myled = 0;
wait(0.5);
}
}
the LED is twinkled, but the Serials don't work.
posted by 17 Jun 2015