USB custom endpoints STM32F103

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
nxtv2
Posts: 2
Joined: Thu Mar 05, 2020 8:34 pm

USB custom endpoints STM32F103

Post 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
User avatar
fpiSTM
Posts: 1758
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: USB custom endpoints STM32F103

Post by fpiSTM »

I guess You should have to modify the CDC descriptor to define your specific needs.
nxtv2
Posts: 2
Joined: Thu Mar 05, 2020 8:34 pm

Re: USB custom endpoints STM32F103

Post 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?
User avatar
fpiSTM
Posts: 1758
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: USB custom endpoints STM32F103

Post 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.
Post Reply

Return to “General discussion”