2016-07-28 02:02 AM
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
2016-07-28 06:19 PM
bump
2016-07-30 02:49 AM
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