Skip to main content
TBlak
Associate II
March 22, 2019
Solved

How to use USB-Serial cable with NUCLEO

  • March 22, 2019
  • 3 replies
  • 2873 views

Hi there,

I have an FTDI USB-Serial cable connected to a NUCLEO F413ZH. I am running the UART_Printf example from STM32CUBE_FW_F4_V1.18.0 in Keil but am not getting any output in my serial terminal (PuTTy).

I have connected the USB-Serial cable to the NUCLEO as follows:

USB-Serial Cable NUCLEO

GND GND

TXD pin D9

RXD pin D8

(I have left VCC disconnected as there is 5V USB power already on the board)

I have configured PuTTy as follows:

Serial line: COM5 (verified)

Baud rate: 9600

Data bits: 7

Stop bits: 1

Parity: Odd

Flow Control: None

I have also verified that the USB-Serial Converter has the same configuration.

Can anyone help me with this?

Cheers,

Tony

This topic has been closed for replies.
Best answer by Uwe Bonnes

Have a look at UM1974. By default, PD8 and PD9 are connected to the STLINK ACM uart.

3 replies

Uwe Bonnes
Uwe BonnesBest answer
Chief
March 22, 2019

Have a look at UM1974. By default, PD8 and PD9 are connected to the STLINK ACM uart.

MNapi
Senior II
March 22, 2019

are you sure you are transmitting anything in the first place

uint8_t * Data[100];

HAL_UART_Transmit(huart3, (uint8_t *)Data, 100, 10); ?

or UART3_Print

no code missing ?

TBlak
TBlakAuthor
Associate II
March 28, 2019

@Uwe Bonnes​  Yes I see now that the USART3 interface available on PD8 and PD9 of the STM32 can be connected either to ST-LINK or to ST morpho connector. I've edited the firmware to use USART2 instead and am now successfully getting output in my serial terminal.

Thanks for your help :D