Page 1 of 1

OTG endpoints for F412/413 should be 5

Posted: Wed Sep 19, 2018 4:20 am
by FXCoder
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

Re: OTG endpoints for F412/413 should be 5

Posted: Wed Sep 19, 2018 1:49 pm
by Giovanni
Hi,

Fixed as bug #978.

Giovanni

Re: OTG endpoints for F412/413 should be 5

Posted: Mon Oct 08, 2018 5:05 am
by FXCoder
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...

Re: OTG endpoints for F412/413 should be 5

Posted: Mon Oct 08, 2018 7:28 am
by Giovanni
Hi,

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

Giovanni

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

Posted: Mon Oct 08, 2018 7:57 am
by FXCoder
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).