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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-24 12:13 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-25 8: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-25 2: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-25 8: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-26 2: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-26 2: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-26 11:48 PM
Hello Mazen,
Realized my mistake. Now, it works. Thank you!
Regards
Vinay
