9 years, 8 months ago.

Help needed on Serial PC example

I'm new to this.....

This is sample code from mbed "Serial PC" it will write "Echos back etc to Teraterm, but does not actually echo back pressed PC keys to Teraterm. Should it do this? (using mbed MCU DIP)

  1. include "mbed.h"

Serial pc(USBTX, USBRX);

int main() { pc.printf("Echoes back to the screen anything you type\n"); while(1) { pc.putc(pc.getc()); } }

2 Answers

9 years, 8 months ago.

this does work for me. i use this technique regularly. perhaps some setting in teraterm is blocking it?

Accepted Answer
-deleted-
9 years, 8 months ago.

You may want to try CoolTerm: https://learn.sparkfun.com/tutorials/terminal-basics/coolterm-windows-mac-linux