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 14:55

Discovery board? What model? Some come in two flavors - with and w/o VCOM supported. It's a matter of st-link version (2-1 and 2B support VCOM). See the documentation of the particular board

Andrew Neil
Chief II
Posted on February 21, 2018 at 15:14

I have numerous errors while compiling the project

You're referring to this:

https://community.st.com/0D50X00009XkfBRSAZ

?

As noted there, you probably just have one actualmistake - but that results in a whole load of similar error reports.

This is quite common - one mistake causes resultant errors in everything else that depends upon it.

Posted on February 21, 2018 at 14:58

Can you advice what board come with VCP? I didn't find any.

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

Posted on February 21, 2018 at 15:08

The list of boards with vcp is practically limitless, most of them of no use to you.

So you can help others help you by narrowing that down a little.

Posted on February 21, 2018 at 15:13

Please name me some STM32F3xx boards with Virtual Com Port demo project.

STM32373C-EVAL_FW_V1.0.0 - no VCP example

STM32F3-Discovery_FW_V1.1.0 - no VCP example 

Posted on February 21, 2018 at 15:18

Does it really have to be specifically a 

Virtual Com Port

 on the target chip itself?

Why can't you just use a plain UART on the target chip?

To have a 

Virtual Com Port

 on the target chip clearly requires that the target chip has USB - so you could use that to narrow-down chip selection...

Posted on February 21, 2018 at 15:18

Well - I invented a shortcut - to take an example and to see what's going wrong.

Posted on February 21, 2018 at 16:23

All nucleo boards come with VCP. The CubeMX v4.24 comes with option of generating code for such board - I mean the UART is pre-initialized.

Almost all Discovery board on the market have such option like VCP - select the one which suits you (look for sensors, LCD, LED, etc).

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

 
Posted on February 21, 2018 at 16:32

But, in these cases, the VCP is part of the ST-Link - not the target microcontroller.

Hence my question: 

https://community.st.com/0D70X000006Sz9YSAS