2021-11-18 04:52 PM
Hi
I got a new STM32F407VGT6 Dicovery board which is quite awesome. I have been playing with it and now I want to print stuff to a terminal via Serial. I looked up some tutotials and there they simply use the on board STLink becasue USART pins are connected between the MCU and the STLINK and gets the Serial data through USB to the computer. To do that they install VCP drivers which I also did. But when I plug in my STM32 board it does not show as an COM Port. Instead it shows as STM32 STLink.
This is the tutorial I have been following. For now I am using an external Serial Converter and getting the job done. But it is messy and I would like to know how to get this done with the STLink itseld. Please share your thoughts with me.
Best Regards
Solved! Go to Solution.
2021-11-18 07:01 PM
You may need to update the STLink firmware to support VCP. I don't believe VCP was a thing when the board was originally shipped (which is why it's not hooked up by default--see board user manual). You can do this within STM32CubeProgrammer.
Assuming you have the latest firmware which includes VCP, the device will show up as both a STLink debugger and a Virtual Com port, the latter of which will be listed in COM Ports, not in USB devices.
2021-11-18 07:01 PM
You may need to update the STLink firmware to support VCP. I don't believe VCP was a thing when the board was originally shipped (which is why it's not hooked up by default--see board user manual). You can do this within STM32CubeProgrammer.
Assuming you have the latest firmware which includes VCP, the device will show up as both a STLink debugger and a Virtual Com port, the latter of which will be listed in COM Ports, not in USB devices.
2021-11-19 11:02 AM
The 407 discovery board does not connect the 407 to the STLink serial port.
https://embedded.fm/blog/2016/12/6/discovery-uarts-part-2-connections
Try that.
2024-09-14 02:27 AM
Thank you, i looked in to the user manual and understood, there is no hardware connection bet stlink and uart peripheral, i used ttl converter and pretty much worked,had some noise in the received data but it worked.Here is the page from reference manual that denoting there is no hardware connection that connects stlink and usart.