cancel
Showing results for 
Search instead for 
Did you mean: 

VCP for STM32F3

Posted on February 21, 2018 at 14:09

I'm trying to implement Virtual Com Port on STM32F3. I use IAR.

I've included all files from a demo project.

0690X00000609h4QAA.png

However I have numerous errors while compiling the project. Struggling for hours I came to this question

Is there any compiled project with VCP for STM32F3?

Note: this post was migrated and contained many threaded conversations, some content may be missing.
57 REPLIES 57
Posted on February 21, 2018 at 16:58

It seems my English is very bad;). Yes, I know what the VCP is.

Posted on February 21, 2018 at 17:18

The working assumption on discovery boards is that they do not have vcp. There are some discovery boards introduced later, I think some of the f4 boards are like that, that do have vcp. Those are St link v2(b?).

Technically only stlink v2-1 boards are capable of vcp.

This may help you get it going: 

https://dannyelectronics.wordpress.com/2016/05/01/uart-debugging-over-st-link-v2-1/

 
Posted on February 21, 2018 at 17:25

Again, I think we are confusing a VCP provided by the target chip itself, with the VCP provided by (some versions of) the ST-Link.

We need the OP to clarify the requirement ...

Posted on February 21, 2018 at 17:31

'I need it as a demo project for a user connectivity, not to program/debug with ST-LINK.'

Maybe you are right. Maybe the author of this post needs connectivity through the USB/CDC

Posted on February 21, 2018 at 17:32

I mean directly ti the target MCU.

Posted on February 21, 2018 at 17:33

Just to echo the other poster, if you are looking for a stm32 board with vcp, the nucleo boards are the obeivious way to go, not the discovery boards.

Posted on February 21, 2018 at 17:34

Why not the discovery? I have plenty of Discovery boards with VCP

Posted on February 22, 2018 at 07:33

I think I have to clarify things. I want to connect my PC's USB to USB on a board  and use it as UART terminal.

Posted on February 22, 2018 at 07:50

So select the Discovery or Nucleo model:

http://www.st.com/en/evaluation-tools/stm32-mcu-nucleo.html?querycriteria=productId=LN1847

 

http://www.st.com/en/evaluation-tools/stm32-mcu-discovery-kits.html?querycriteria=productId=LN1848

 

Look at price, sensors, displays, arduino connectors (can add extra HW  - arduino shields). All new boards supports VCP - Virtual COM emulated by the ST-LINK programmer / debugger.

Also boards equipped with the second USB port (Some if not all Discovery boards)  can use USB CDC  - direct connection from the MCU to the PC without ST-LINK.

Posted on February 22, 2018 at 08:55

Hi Bogdan,

I perfectly understand that all boards supports VCP. I have no problem with the hardware. The problem I didn't found any compiled VCP  example.

My English too bad? It's hard to understand what I want? I start to panic.