What is the easiest way to connect two STM32F769 systems over USB ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-17 8:43 AM
Hello,
I have two nearly identical boards and I need to connect them over USB.
One possiblle way is using "Virtual Com Port", but haven't found anything about how to implement it on host device.
Is there any example of doing this or any other maybe good alternative for this connection.
I don't need really high speed, few bytes every 100msec...
Thanks in advance,
regards,
Bully.
Solved! Go to Solution.
- Labels:
-
STM32F7 Series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-18 1:20 AM
The easiest possible way is to use UARTs.
USB FS data pins can be mapped to UART4 Tx/Rx, USB HS pins can be mapped to USART1 Tx/Rx.
Use the swap Tx/Rx feature of the UART on one side, except when connecting USB FS on one MCU to the USB HS pins of the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-17 10:37 AM
STM32Cube_FW_F7_V1.16.0\Projects\STM32F769I_EVAL\Applications\USB_Device\CDC_Standalone
STM32Cube_FW_F7_V1.16.0\Projects\STM32F769I_EVAL\Applications\USB_Host\CDC_Standalone
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-17 3:52 PM
Except that USB is not the easiest way to connect two boards, if you only need "few bytes every 100msec".
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-18 12:28 AM
Hi,
I agree that USB is not the optimal choice, but I cannot choose.
So, I have USB between to always powered host and device and I'd like to find a way not to complicate too much with protocol, devce classes etc...
So, I'm eeking the way to implement such communication in the easiest possible way through USB bus (I can probably skip device detection, exchange of information, etc...)
Thanks in advance,
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-18 1:20 AM
The easiest possible way is to use UARTs.
USB FS data pins can be mapped to UART4 Tx/Rx, USB HS pins can be mapped to USART1 Tx/Rx.
Use the swap Tx/Rx feature of the UART on one side, except when connecting USB FS on one MCU to the USB HS pins of the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-20 4:13 AM
Thanks all for ideas... I couldn't get through with USB, probably because of a non-standard voltage on VBUS.
So wen't the UART way and used SWAP bit feature. Communication works...
