cancel
Showing results for 
Search instead for 
Did you mean: 

HS-USB in STM3240G-EVAL

c_uimran
Associate II
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
3 REPLIES 3
thierry1
Associate II
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
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=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80...
c_uimran
Associate II
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