Serial over USB-OTG?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Serial over USB-OTG?

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Serial over USB-OTG?

Post 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
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: Serial over USB-OTG?

Post by Tectu »

I just tried it out and it worked within no time!
Excellent work, Giovanni!


~ Tectu
Post Reply