Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded the driver to connect to mbed via USB. I flashed a serial communications example program on the mbed board.

I've connected to it via Tera Term, at 9600 baud, 1 stop bit, no parity, and 8 data bits. I've also selected LF for Receive under terminal setup.

mbed is hooked via its standard program loading USB. Can I not use this one? I made it printf to both USBSerial serial, and Serial pc(USBTX, USBRX).

Is my mbed device dead? Or am I missing something?

USBSerial serial;
Serial pc(USBTX, USBRX);

int main(void) {
   uint8_t buf[128];
       serial.scanf("%s", buf);
       serial.printf("recv: %s", buf);
       pc.printf("recv: %s\r\n", buf);


share|improve this question
up vote 1 down vote accepted

After looking at the mbed example code, it appears that you cannot use both USBSerial serial; and Serial pc(USBTX, USBRX);. What would be the point of that anyway? Just use Serial pc(USBTX, USBRX);.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.