cancel
Showing results for 
Search instead for 
Did you mean: 

Iam using STM32F072B-DISCO board with STM32Cube IDE and FreeRTOS. But, i have no idea how to send/receive data from mini USB ports in it. Can somebody help with it?

VPing.1
Associate II
1 ACCEPTED SOLUTION

Accepted Solutions
Mazen Aljeddani
Associate II

Hi VPing.1,

The easiest way, is to configure the mini USB as VCP(Virtual Comm Port).

So, you can use it as serial interface (UART) from Micro Controller Side.

From the PC side, will be as serial comm port.

https://www.youtube.com/watch?v=AYICE0gU-Sg

Regards,

Mazen

View solution in original post

5 REPLIES 5
Ons KOOLI
Senior III

Hi VPing.1,

To start with USB please refer to our STM32 USB trainings.

You can also find ready USB developed applications in the STM32CubeF0 under \Projects\STM32F072B-Discovery\Applications.

Best Regards,

Ons.

Mazen Aljeddani
Associate II

Hi VPing.1,

The easiest way, is to configure the mini USB as VCP(Virtual Comm Port).

So, you can use it as serial interface (UART) from Micro Controller Side.

From the PC side, will be as serial comm port.

https://www.youtube.com/watch?v=AYICE0gU-Sg

Regards,

Mazen

Hello Mazen,

Thanks for quick reply. I understand that CUBE IDE contains CUBE MX . So, CUBE IDE generates code and I'm able to compile and download to device. But, cannot find similar APIs as in video with CUBE MX. Am i missing some knowledge here? Even i cannot see any tty devices in Ubuntu. Sorry, i'm new to this STM open source world.

Further help greatly appreciated.

Thanks&Regards

Vinay

Hello Ons,

Thanks for reply. Its long way to go. Parallely checking. STM32F072B with STM32CubeIDE videos would be more helpful. Also, i cannot see USB device at all detected in "ls tty" . Can see device in "lsusb" when connected USB-STLink. But, cannot see device in "lsusb" when connected "USB User" only . I might be missing something here. Any further help appreciated.

Thanks&Regards

Vinay

Hello Mazen,

Realized my mistake. Now, it works. Thank you!

Regards

Vinay