2020-12-24 12:13 AM
2020-12-25 08:22 AM
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
2020-12-25 02:39 AM
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.
2020-12-25 08:22 AM
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
2020-12-26 02:17 PM
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
2020-12-26 02:21 PM
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
2020-12-26 11:48 PM
Hello Mazen,
Realized my mistake. Now, it works. Thank you!
Regards
Vinay