Serial will only spew garbage problem

17 Mar 2010

Hi

I'm using the serial on p9 and p10, by changing the Serial Hello World code from USB. The output is just garbage. Seyon settings are 9600 8-N-1.

The output is

o5''!�Q!
The code is

#include "mbed.h"              

Serial uart(p9,p10); // tx, rx

int main() {
    uart.printf("Hello World!\n");
}
Can anyone help? This is repeatable in cat and screen.

17 Mar 2010

Solved: Didnt realise p9/10 are ttl, not rs232 ^__^

17 Mar 2010

Wow, you're lucky you didn't burn it out.

11 Jan 2017

Hello, I have the same problem, how are you doing?