Skip to main content
c_uimran
Associate
June 11, 2014
Question

HS-USB in STM3240G-EVAL

  • June 11, 2014
  • 3 replies
  • 877 views
Posted on June 11, 2014 at 22:36

Hi,

I just got the STM3240G evaluation board and wanted to use it as a CDC USB device, for HS USB.

I haven't had much success with ST's firmware so far. I generated the configuration files using the Cube application, and later also tried the CDC_Standalone example that is on the webpage for this kit. Unfortunately it doesn't enumerate successfully in Windows. I am using the Virtual Com Port driver for STM32. Please advise!

Thanks,

Umaid
    This topic has been closed for replies.

    3 replies

    thierry1
    Associate
    June 12, 2014
    Posted on June 12, 2014 at 14:58

    Some more explanation describing the failure may help find your problem.

    Is it 'chirping' at High Speed or dropping to Full Speed?

    Are you using a USB protocol analyzer?

    How does enumeration fail?

    schauer
    Associate II
    June 12, 2014
    Posted on June 12, 2014 at 17:11

    There are some issues with the files generated by CubeMX. Depending the version of HAL you use you might not even bring up the uC into main().

    So please check first if the flash waitstates are configured correctly. Then you could i.e. go on with:

    https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=https%3a%2f%2fmy.st.com%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Java%2fSTM32Cube%20CDC%20-%20problems%20and%20a%20possible%20bug&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&currentviews=368
    c_uimran
    c_uimranAuthor
    Associate
    June 17, 2014
    Posted on June 17, 2014 at 17:47

    Hi,

    Thanks guys. After reading some posts, I tried increasing the stack and heap sizes assigned by the startup file generated by my Keil IDE. It works in HS mode pretty well now.

    Thanks,

    Umaid