7 years, 8 months ago.

How to connect for UART output from NUCLEO F091RC to Windows-7 PC for Nucleo_printf example

I can build and run Nucleo_printf example by using mbed IDE.

But which TX/RX pins do I use on Nucleo? And what kind of serial/USB converter cable do I need? And what terminal program will work on Windows, that allows send and receiver?

1 Answer

7 years, 8 months ago.

That question was answered here

Accepted Answer

This did not answer question. That other answer is for using a VIRTUAL COM port through USB. I need to test using a terminal program to Nucleo UART RX & TX without USB, for eventual production board that has no USB, only UART.

posted by DOUG BELL 12 Aug 2016

OK, so for a serial port that is independent of the nucleo ST link you can pick any free serial port on the F091 (see the platform page here). You then need a USB to serial converter between the F091 and the PC. Examples are the FTDI devices see here. Just make sure you have a version that works on 3V3 serial ports. This device usually requires that you install a (free) driver on your PC. You can then use hyperterminal or something like that to connect with the F091.

Serial mylink(PA_9, PA_10);  // use Serial1 on nucleo pins D8, D2

main {
  mylink.printf(...)
}

Note that instead of an external FTDI device you could also use any nucleo board as temporary interface between your target F091 and a PC. The processor on the nucleo can run some simple code that creates a transparant bridge between one of its serial ports (eg also Serialport 1) and its ST link serial port for the host PC. You then connect the nucleo serial1 TX to the F091 serial1 RX and vice versa instead of the external FTDI USB to Serial. Make sure you also have common ground between the F091 and the nucleo.

posted by Wim Huiskamp 16 Aug 2016