Skip to main content
vbruno1
Associate III
April 27, 2016
Question

how to use the example CDC_Standalone for personal application

  • April 27, 2016
  • 6 replies
  • 1135 views
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
    This topic has been closed for replies.

    6 replies

    Walid FTITI_O
    Visitor II
    April 27, 2016
    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
    Visitor II
    April 27, 2016
    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
    vbruno1Author
    Associate III
    April 27, 2016
    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
    Visitor II
    April 27, 2016
    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
    January 30, 2017
    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.

    Technical Moderator
    January 30, 2017
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks