cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F303 USB Cube CDC app

kvresto
Senior
Posted on July 28, 2016 at 11:02

Some re-edit required:

Hi.

I have used STM32cubeMX to create a USB CDC application for the NUCLEO-F303RE board. I can connect to the host PC as a CDC, so thats fine.

I now want to find in the source code where is the code that initialises the microcontroller IO ports to configure them for USB alternate function, for example a statement like:

GPIO_InitStruct.

Pin

= GPIO_PIN_12;�?,

and

GPIO_InitStruct.

Alternate

=

GPIO_AF14_USB

;�?.

I also want to find where in the code is the source that sets up the serial port, usually COM1 to function as the other CDC input port. I would like to experiment and get very familiar with this application.

Can some please help me find this code.

Thanks for help

kvresto

2 REPLIES 2
kvresto
Senior
Posted on July 29, 2016 at 03:19

bump

kvresto
Senior
Posted on July 30, 2016 at 11:49

Hi.

I have used STM32cubeMX to create a USB CDC application for the NUCLEO-F303RE board. Nothing more just a CDC. I can connect to the host PC as a CDC, it enumerates as COM11 in this case.

BUT! how do I use this thing. I can open my terminal program and connect to COM11, now what, where's the other end 🙂

kvresto