Page 1 of 1

Serial over USB-OTG?

Posted: Tue Oct 09, 2012 6:10 am
by Tectu
Hello Folks,

I saw the example which shows how to use USB-CDC to emulate a serial connection to your computer for debugging.
I've never done anything before with USB, so here's my question: On my STM32F103 board, there's an USB-OTG port. Is it possible to use the serial emulation over this port as well?

Sorry if I mix stuff up or ask stupid none-sense questions :D


~ Tectu

Re: Serial over USB-OTG?

Posted: Tue Oct 09, 2012 10:20 am
by Giovanni
On the F103 there is not an OTG port but a normal USB device port.

It is possible to use the serial-over-USB anyway, the code is exactly the same, differences are handled internally.

Giovanni

Re: Serial over USB-OTG?

Posted: Wed Oct 10, 2012 6:39 pm
by Tectu
I just tried it out and it worked within no time!
Excellent work, Giovanni!


~ Tectu