Page 1 of 1

USB custom endpoints STM32F103

Posted: Thu Mar 05, 2020 8:57 pm
by nxtv2
Hello everyone,


I am currently designing a battery tester, and would like to use the USB device interface on STM32F103C8T6 as more than just USB CDC.What i mean by this is instead of the USB interface being configured for the endpoints of CDC only, it also adds generic endpoints that can be used by libUSB.
What would be the easiest way to add this using the new core [https://github.com/stm32duino/Arduino_Core_STM32] without losing support for the serial functions on CDC that are available by default.

Thanks for helping

Re: USB custom endpoints STM32F103

Posted: Sun Mar 08, 2020 4:31 pm
by fpiSTM
I guess You should have to modify the CDC descriptor to define your specific needs.

Re: USB custom endpoints STM32F103

Posted: Tue Mar 10, 2020 9:21 am
by nxtv2
Which part of the Code is the descriptor in?
And is there an easy way to modify it from the arduino sketch itself?

Re: USB custom endpoints STM32F103

Posted: Tue Mar 10, 2020 10:07 am
by fpiSTM
https://github.com/stm32duino/Arduino_C ... #L170-L447

No it is not possible at sketch level.
Maybe you best bet is to create a new custom class for your need but you will be on you own for this.