AnsweredAssumed Answered

STM32F4 - Setting up a VCP with Cube

Question asked by Vinci on Apr 24, 2014
Latest reply on Apr 25, 2014 by Vinci

Is there a detailed tutorial out there on how to set up an USB CDC class for creating a virtual com port?

I found certain threads in the forum and example code, but both was rather old. Since a lot of things changed with the latest peripheral library release I'd really appreciate it if someone could write a step-by-step instruction on setting up a VCP project or point me into the right direction.

What I've tried so far is creating an USB-Device with the CDC class selected from the Cube eclipse plugin but this is far from ready to work and I'm not really sure what things need to be changed or even where things have to be adapted...
E.g. how to set up the USB properly, or how to provide certain system functions the USB stuff is looking for. I can't even compile the standard files created by Cube right now because the linker is looking for a reference to '_sbrk'. I guess other linker errors would follow... How and where to I provide those system calls... and so on and so forth ;)