2020-04-23 12:45 AM
Hi, I have few of this Nucleo boards (-F103RB, -F072RB, -F401 etc.). I would like to use ST-LINK VCP to communicate with MCU over the USART2 but I cannot find any information about parameters of this communication (I mean baud rate, parity bits etc.).
I have already read all the PDFs in the Resources section on the NUCLEO-F103RB product page and have not found this information. Can you indicate where it is described?
Thanks,
Jakub
2020-04-23 01:55 AM
You get to pick the baud rate, just.pick the same one at both ends.
At the STM32 end you need to enable the clocks, the pins and the peripheral. Would suggest using 115200 8N1
Also on the NUCLEO-64 the VCP UART pins are shared with the Arduino D0 and D1 shield pins.
2020-04-23 02:04 AM
I do not understand - yes, I can pick the baud rate at the STM32 end, but there is some baud rate already setup in this F103 which is acting as ST-LINK on Nucleo boards, yes?
On Nucleo boards F103 MCU create bridge between VCP (PC<->F103 communication) and USART (F103<->Main MCU communication), and now I'm talking about this USART communication. What are parameters of USART inside F103 (acting as ST-LINK). How could I pick the baud rate which is setup inside F103 (ST-LINK) firmware?
Thanks,
Jakub
2020-04-23 02:34 AM
When you open the COM port, or TTY, for your Terminal application pick the same baud rate there
2020-04-23 08:16 AM
If you use CubeMX to generate your application, you set yourself these parameters in the UART setting in CubeMX.
If you write your own application bare metal, you set the UART parameter as you want.
If you have an unknown application already in the MCU flash, read the manual, or use an oscilloscope...