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.
6 years, 7 months ago.
Mbed Serial2Serial
Hi,
I am trying to send data to serial line on STM32 Discovery kit. teraterm on bouth ends.
- include "mbed.h"
Serial pc(USBTX, USBRX); tx, rx Serial device(PA_0, PA_1); tx, rx
int main() {
pc.baud(115200); device.baud(115200);
printf("Hello\n"); device.printf("Hello\n");
}
Bauds are right but in device side i end up with "Z«::"(Hello) Any idea why?
1 Answer
6 years, 7 months ago.
Joni,
instead of prinft, try using pc.printf.
Pc side works fine
posted by Joni Patana 08 Nov 2017