cancel
Showing results for 
Search instead for 
Did you mean: 

how to use the example CDC_Standalone for personal application

vbruno1
Associate III
Posted on April 27, 2016 at 10:10

I would like to begin the application example CDC Standalone, edit it for my purpose.

Manage a data stream from the PC to the micro, to be saved in the internal memory. The response stream and control to the Pc by the micro.

What function should I keep in mind? What do you recommend?

Thanks so much
6 REPLIES 6
Walid FTITI_O
Senior II
Posted on April 27, 2016 at 11:37

Hi bruno.vincenzo,

To get a response for all your questions and built you own project , I do recommend the following references:

- Application note

http://www.st.com/st-web-ui/static/active/jp/resource/technical/document/user_manual/DM00108129.pdf

''USB device library'' (6.5 Communication device class)

-

USB on-the-go Host and device library that you can download at this

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257882#

with it user Manual

http://www2.st.com/content/ccc/resource/technical/document/user_manual/1c/6b/06/e6/19/6c/46/bf/CD00289278.pdf/files/CD00289278.pdf/jcr:content/translations/en.CD00289278.pdf

-

http://www.st.com/web/en/catalog/tools/PF259242

tool that help you to generate your necessary initialization code  for your project.

-Hannibal-

I would like to begin the application example CDC Standalone, edit it for my purpose.

Manage a data stream from the PC to the micro, to be saved in the internal memory. The response stream and control to the Pc by the micro.

What function should I keep in mind? What do you recommend?

Thanks so much
Walid FTITI_O
Senior II
Posted on April 27, 2016 at 12:03

Hi bruno.vincenzo,

Check this [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/USB%20CDC%2BMSC%20Composite%20Device%20VIDPID&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&currentviews=1695]discussion, I think it would be helpful for you.

-Hannibal-

vbruno1
Associate III
Posted on April 27, 2016 at 13:33

Thanks Hannibal, now I see the docs 

These docs are right for STM32F103ZE? I'm use this.

However, I thought to swap bytes through hyperterminal and send and receive files through xmodem protocol or ymodem or zmodem.

Walid FTITI_O
Senior II
Posted on April 27, 2016 at 16:43

Hi bruno.vincenzo,

Yes the documents are generic and comptatible with STM32F1.

I see more clear your need and I recommend you to check and run both ''Virtual comport demos'' in the ''USB Full Speed device library'' that you can download from this

http://www.st.com/web/en/catalog/tools/PF258157

.

The demos are described in the

http://www.st.com/st-web-ui/static/active/cn/resource/technical/document/user_manual/CD00158241.pdf

-Hannibal-

Jennifer D
Associate II
Posted on January 30, 2017 at 21:46

hi bruno.vincenzo

Have you got it up and running? I am using the L4 and having trouble. It says the COM port cannot start.

Imen.D
ST Employee
Posted on January 30, 2017 at 23:07

Hi Jennifer D,

Increase the heap and stack sizes defined in startup file.

Hope this helps you.

Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen