OTG endpoints for F412/413 should be 5 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
FXCoder
Posts: 173
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 63 times
Been thanked: 51 times

OTG endpoints for F412/413 should be 5

Postby FXCoder » Wed Sep 19, 2018 4:20 am

These parts support 5 in + 5 out endpoints (in addition to bi-directional endpoint 0).
This allows the F412/413 to support two x SDU concurrently BTW.

Code: Select all

Index: stm32_registry.h
===================================================================
--- stm32_registry.h   (revision 12270)
+++ stm32_registry.h   (working copy)
@@ -1568,7 +1568,7 @@
 /* USB attributes.*/
 #define STM32_OTG_STEPPING                  2
 #define STM32_HAS_OTG1                      TRUE
-#define STM32_OTG1_ENDPOINTS                3
+#define STM32_OTG1_ENDPOINTS                5
 
 #define STM32_HAS_OTG2                      FALSE
 #define STM32_HAS_USB                       FALSE
@@ -1903,7 +1903,7 @@
 /* USB attributes.*/
 #define STM32_OTG_STEPPING                  2
 #define STM32_HAS_OTG1                      TRUE
-#define STM32_OTG1_ENDPOINTS                3
+#define STM32_OTG1_ENDPOINTS                5
 
 #define STM32_HAS_OTG2                      FALSE
 #define STM32_HAS_USB                       FALSE

User avatar
Giovanni
Site Admin
Posts: 11831
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 522 times
Been thanked: 433 times
Contact:

Re: OTG endpoints for F412/413 should be 5

Postby Giovanni » Wed Sep 19, 2018 1:49 pm

Hi,

Fixed as bug #978.

Giovanni

User avatar
FXCoder
Posts: 173
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 63 times
Been thanked: 51 times

Re: OTG endpoints for F412/413 should be 5

Postby FXCoder » Mon Oct 08, 2018 5:05 am

Under W7 the STM VCP driver only supports one VCP.
If the usbcfg.c is arranged similarly to the implementation in testhal (but using USB1 v USB2), then SDU2 appears as the W7 COM port.
Under W10 using the MS Inbox VCP your get two ports as expected.
Just something to be aware of...

User avatar
Giovanni
Site Admin
Posts: 11831
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 522 times
Been thanked: 433 times
Contact:

Re: OTG endpoints for F412/413 should be 5

Postby Giovanni » Mon Oct 08, 2018 7:28 am

Hi,

I am not sure to have understood the problem, sorry.

Giovanni

User avatar
FXCoder
Posts: 173
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 63 times
Been thanked: 51 times

Re: OTG endpoints for F412/413 should be 5  Topic is solved

Postby FXCoder » Mon Oct 08, 2018 7:57 am

The STM VCP driver (V1.5) for WIN7 does not support multiple VCP per USB.
So even though an STM32F413 board may implement 2 x SDU on the OTG (using CDC) the Win7 box will only see one VCP COM port channels.
Under Win10 the STM VCP driver is not used and instead Windows INbox Serial USB is used which will yield 2 x COM ports.
Also works fine in Linux or Mac (2 ports).


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest