cancel
Showing results for 
Search instead for 
Did you mean: 

How to establish a Virtual Port Com connection with STM32F103RBT6?

JWojt.1
Associate II

Hello, I realised that there is less than none articles about this topic so I'm looking for advice here. Long story short, I'm trying to communicate with my Olimexino STM32 board with Virtual Com Port. I am using CubeMX to create the source code, and I'm uploding it via ST-LINK Utility with STLinkV2. I try to cummunicate with the board via RealTerm. But, everytime I load any code (even if it's just a simple blinking led) on the board it just stops showing it in the Device Manager. I tried many different ways, and I have read somwhere that it might be a wrong resistor connection problem. I am a newbie if it comes to STM32 so please be gentle. I will be very grateufl for any insight on this topic.

Cheers,

Jan

18 REPLIES 18
JWojt.1
Associate II

Hello Ons,

I did, and I have all the drivers necessary for my system installed.

I actually got my VCP working on the STM32F429-DISC1 board, but only on an example that a friend of mine provided, the examples from st.com site are still not working.

Best regards,

Jan

Ons KOOLI
Senior III

Hi Jan,

Can you please explain which example exactly that didn't work for you ?

Can you give the directory to it ?

Best Regards,

Ons.

Pavel A.
Evangelist III

> I actually have a STM32F429-DISC1 board (the one with the lcd touch-scrren) and I have tried using the CDC_Standalone projects on it too

@JWojt.1​ Is this CDC_Standalone project that you have tried, been ported from other STM32F4 board?

There is no example named CDC_Standalone for STM32F429-Discovery [here]

However, this board has several USB host MSC examples.

STM32F429ZI-Nucleo has USB device examples, but not for CDC.

> I actually got my VCP working on the STM32F429-DISC1 board, but only on an example that a friend of mine provided

It's good to have friends ;) This is what ST generally advices - port an example for a similar MCU of the same family.

-- pa

JWojt.1
Associate II

I have tried the USB_Host example for STM32F429_DSIC1 that I downloaded from here:

https://www.st.com/en/embedded-software/stm32cubef4.html

Unfortunatley I am not looking for a host example, but for a device example.

I tried this simple tutorial, and It didn't work, the board doesn't appear in the device manager when I plug it in.

https://www.youtube.com/watch?v=7oED-m34EKk

It really got me suprised as this is one of the simplest codes I've ever seen, I have all necessary drivers installed and somehow it is still not working...

Perhaps it should be explained that different boards for same STM32 family have slight differences that can matter.

The board on the youtube video has STM32F407, your board has F429. These are diferent boards.

-- pa

Hi JWojt.1,

"There is no example named CDC_Standalone for STM32F429-Discovery [here]"

  • The firmware contains projects, not all projects exist in all boards. You can port CDC project from another board easily. You can find device CDC_Standalone in STM324x9I_EVAL, STM324xG_EVAL, STM32446E_EVAL, and STM32469I_EVAL. You can port the CDC application from any board of listed above (or any other different board) to your preferred board. A proper porting should necessary work.
Ons KOOLI
Senior III

Hi JWojt.1,

Can we consider that this question is solved ?

Best Regards,

Ons.

Ons KOOLI
Senior III

Hi MWaqa.1,

I tried to create a HID project with Mx quickly for the STM32F429-DISC board, and I've got my device detected by Host.

Try to chose HSE Cristal/Ceramic Resonator as clock source. And share with me your .ioc file if you want.

Best Regards,

Ons.

Ons KOOLI
Senior III

Hi MWaqa.1,

Any updates ?

Best Regards,

Ons.