Skip to main content
entwicklung
Associate III
September 16, 2014
Question

STM32 Nucleo Virtual COM Port

  • September 16, 2014
  • 6 replies
  • 4617 views
Posted on September 16, 2014 at 10:49

Hi,

I'm using a Nucleo-F302R8 and I want to use the USB as a virtual COM Port to connect it to Labview.

I think this might be possible cause the UM1724  describes it for the use with mbed.

I'm not really sure what's the matter with this mbed.

Is there any help how to use the virtual COM?

Thanks in advance

Steffen

#virtual-com-nucleo
This topic has been closed for replies.

6 replies

Montassar BEN ROMDHANE_O
Visitor II
September 16, 2014
Posted on September 16, 2014 at 15:48

Hi Steffen,

The The STM32 Nucleo boards integrate the ST-LINK/V2.1 interfacing with the PC and offering the following capabilities:

  – Debug and programming port

  – Virtual com port interface

  – Mass storage interface

To have insight into the use of the STM32 Nucleo boards Virtual Com port feature, you can refer to the following example, under the

http://www.st.com/web/en/catalog/tools/PF259243#

 :

Firmware\Projects\STM32F401RE-Nucleo\Examples\UART\UART_Printf

 

Regards.

entwicklung
Associate III
September 17, 2014
Posted on September 17, 2014 at 15:16

Hi Heisenberg,

Sorry, but I don't get it.

The example just shows the USART being configured and printf is used.

On my nucleo the USART on PA2 and PA3 is connected with the ST link.

Does this mean, I can use USB / virtual COM with this USART pins?

Tesla DeLorean
Guru
September 17, 2014
Posted on September 17, 2014 at 17:22

The ST-LINK facilitates it's VCP via the USART pins attached to it.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/USART%20example%20code%20for%20Nucleo%20F401RE&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&currentviews=311]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Discovery%2FUSART%20example%20code%20for%20Nucleo%20F401RE&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=311
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
September 17, 2014
Posted on September 17, 2014 at 17:34

0690X0000060MoeQAE.gif

0690X0000060MofQAE.gif

0690X0000060MogQAE.gif

0690X0000060MohQAE.gif

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
entwicklung
Associate III
September 18, 2014
Posted on September 18, 2014 at 08:21

Thank you both. Thats an awesome feature.

Maybe they should have written, that it is also usable for common propose and not only for mbed. But ok, I think it is clear now.

ckim
Associate III
December 2, 2015
Posted on December 02, 2015 at 08:46

Hi, I tried that project but I cannot see the printf result. (Firmware\Projects\STM32F401RE-Nucleo\Examples\UART\UART_Printf of STM32cubeF4)

Isn't there anything important I should set on the uVision debugger setting?

currently set to use ST-Link, Trace not enabled.