Reply by ajellis July 23, 20152015-07-23
Hi 

I found the information required after post the same question at ST's
site. I've pasted the link at the bottom.

The path to the info I needed was:

 STM32Cube_FW_F4_V1.7.0ProjectsSTM324xG_EVALApplicationsUSB_HostCDC_Standalone

I hope this is useful to anyone who stumbles across this.

Andrew

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex%5fmx%5fstm32%2fHosting%20a%20USB%20%2d%20RS232%20on%20STM32&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex%5Fmx%5Fstm32%2FAllItems%2Easpx%3FPaged%3DTRUE%26p%5FStickyPost%3D%26p%5FDiscussionLastUpdated%3D20150713%252009%253a06%253a31%26p%5FID%3D55371%26View%3D%257bF47A9ED8%252dE726%252d42BE%252dACED%252d732F13B66581%257d%26FolderCTID%3D0x012001%26PageFirstRow%3D121&currentviews=50

>Hi > >I have a project where I need to host a CDC on an STM32F
microcontroller.
>The usarts are in use hence the need for the CDC. > >I have found library code from STs cube which configures the USB to host
a
>CDC. The problem I have is making my application talk to the device. >Obviously when a USB to serial adapter is connected to a windows PC a
COMx
>interface is created which can then be connected to by an application. >What I'm not clear on is how I would make the firmware in my STM32 talk
to
>the CDC so that serial data can be passed to a connected serial device. > >Can someone give me some hints on how to connect to the CDC device >please? > >Thanks > >Andrew >--------------------------------------- >Posted through http://www.EmbeddedRelated.com
--------------------------------------- Posted through http://www.EmbeddedRelated.com
Reply by ajellis July 8, 20152015-07-08
Hi

I have a project where I need to host a CDC on an STM32F microcontroller.
The usarts are in use hence the need for the CDC.

I have found library code from STs cube which configures the USB to host a
CDC. The problem I have is making my application talk to the device.
Obviously when a USB to serial adapter is connected to a windows PC a COMx
interface is created which can then be connected to by an application.
What I'm not clear on is how I would make the firmware in my STM32 talk to
the CDC so that serial data can be passed to a connected serial device.

Can someone give me some hints on how to connect to the CDC device
please?

Thanks

Andrew
---------------------------------------
Posted through http://www.EmbeddedRelated.com