STM32F407 to STM32F407 USB communications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-11 06:06 AM
Hello,
I am new to STM32 parts and USB. We are looking at using USB to communicate between two STM32F407 boards.
Can anyone give some insight as to the best way to do this?
What USB classes should be used?
Any examples of this?
Thanks,
Brent
Solved! Go to Solution.
- Labels:
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-11 06:16 AM
In USB, one device is a host and one is a device. Set one board as a USB host, the other as a USB device, and use the CDC device class. This is possible.
But it's going to be a lot easier and more straightforward to use UART.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-11 06:16 AM
In USB, one device is a host and one is a device. Set one board as a USB host, the other as a USB device, and use the CDC device class. This is possible.
But it's going to be a lot easier and more straightforward to use UART.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-11 11:19 AM
Thank you. I will start looking into that.
And yes I agree a UART would be easier, unfortunately our architecture dictates using a USB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-11 12:21 PM
> unfortunately our architecture dictates using a USB.
What architecture?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-11 01:23 PM
Remember that a USB has a single host and multiple devices. You won't be able to plug a PC into this bus, it will want to be the host, and you've already programmed one of your '407s to be the host. But if your architecture just has one of the '407s as the host and 1+ '407s as devices, it'll just be difficult but not unlikely to work.
A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-22 04:58 AM
The design for our product we are developing.