Thanks a lot for sharing this, I was searching for the VCP over USB for some time and other tutorials made life very complicated.. Thanks again for sharing this
Hello, I am using STM32F429i Disc1 Board. I followed the exact same procedure as demonstrated. But the device isn't recognized by the PC at all. I couldn't find the virtual COM port of USB OTG. I verified heap size, installed VCP Driver (Am using Windows 10) and double checked everything. Couldn't figure the issue. Please help.
hi Mohamed, Your video is brilliant. Could you please make a video of how to use the STM32F4 as a speaker(audio output device)? For example, read the data from the audio output through micro-usb and write the data into memory. I will be appreciate if you can help me!
Hi I am using F411 board and there is no separate individual comport created its showing the same com port as previous but the working of com port is shifted to mini usb com port
Thanks for this video. I already got everything set up, connecting and transmitting data back and forth but I was unsure how to go about using the driver w.r.t receiving data. Do you think it’s necessary to have the callback to main? Essentially the CDC function is a callback so you could just put your logic in there?
MYaqoobEmbedded Thanks for your suggestion :) I’ve decided to implement a ring buffer message system as a separate module where incoming messages can be queued and processed. So far so good :)
Hi Mohamed, So we cannot use the st link itself to do this virtual com port if we have older version of this board right? I read it so online. But would like to know it from you. I wanted to use the virtual com port for a debug purpose to send messages to terminal. That's why. I'm just getting started with this microcontroller though I have had this board for quite a long time.
This might be a dumb Question. I believe that there is some kind of interrupt generated when you send data from PC to the COM port causing the static function to be called. Is it correct? I couldn't really trace it from the code. Could you please help understand?
Can we use St-Link ( The Mini USB VCP) for communication with PC. Because the VCP of the ST-link is not connected to UART of STM32F407. Also are the drivers of USB VCP of the Stm(Mini) available for Windows 10.
Hi i want to control a robot arm with mouse(buttons and cursor) connected to my PC(not with Stm directly)..is it possible to control it that way?if yes so can you share any idea how to achieve that..the flow will be like this..Mouse->PC->Stm->robot.
Selam Mohamed, Is it possible to combine VCP and HID in the same USB Interface? I mean with two different descriptors so I can see HID device and the Virtual Serial com at the same time on my machine. If yes would you please make a video for it? Thank you
I am working with Stm32f207zg as a host and I want to send data like you did to a device which is another microcontroller and the only function available is USBH_CDC_Transmit and i didnt understand how to work with it i need your help
I tried the transmit data portion of this video on my stm32f103 board and it works fine but the receive portion does not although i did the same code which is in this video, can anyone tell me the reason please please
Hi Mohammad , when I connect the FS port to my computer, it is not detected, can you tell me what is going wrong? The computer fails to acknowledge that anything is connected at all.
Hi Mohamed, Thank you for these videos! On this one, if I send "Hello" as you did, everything is fine, but if I type one character at a time, I get "H@ el@l@o" with "junk" characters. Why is that?
Hello, great video. I want to know how to configure OTG/dual mode. I am using cube, so I have selected the option but I am not sure what is the code to enable this dual mode. Your help would be appreciated.
thanks for the reply, try to come up with a video referring this feature it would be very helpful and appreciated. Can I ask you if there is any tutorial explaining about the sleep modes and how to implement them in code.
Hey Mohamed, when i connect the usb to the laptop i have an error: the laptop does not recognize the usb, i checked my device manager, there is no virtual com, so this is the problem. my OS is Windows 10 can ou help me please
if you are using STM32CubeMx to generate code, go under "Middleware" category in "Options" and select "USB_DEVICE" and then select "Communication Device class (Virtual Port Communication)" and then generate code. you will be fine.
@@mutexembedded2206 thank you. In fact if you could do timers without cube MX for start, it would be too good. I tried some exercises by myself using the default HAL and understanding each register which worked and motivated a lot even though it took some time.
MYaqoobEmbedded and how do you program the board, by the virtual COM port 4? In that case, what driver do you use. Because I can only program mine by the USB driver and it dont generate any COM port.
+MYaqoobEmbedded hi mohamed how are u ? i installed the virtual com driver from st website but the port still not detected , when i checked the device manager i find only stlink virtual com !!!!!! i can't know what's the problem !!!
@@behnammoradi1449 Hi, Go to your device manager when you plug the ST Micro USB (i.e. you need to plug both USBs one for ST Link&power other for USB communication). Then check for undefined USB ports.
I have installed VCP_V1.4.0_Setup.exe from st.com. I am able to build the program and load on the board and run, when i connect the USB to my laptop, device manager i see STMicroelectronics Virtual Comport 4 with yellow icon (not initialised fully). Also com4 is not getting open hyper terminal serial port program. Can you please advice what driver we need to install on laptop.
Hi Mehrez, You would need to install the STM VCP USB driver. You can download it from here: www.st.com/en/development-tools/stsw-stm32102.html Good Luck :)