Skip to main content
yoshiokash
Visitor II
October 2, 2015
Question

USB Device function on the STM32Cube

  • October 2, 2015
  • 1 reply
  • 514 views
Posted on October 02, 2015 at 05:14

Hi, I'm making CDC device function on the STM32Cube and STM32F4Discovery.

(Using STM32CUBEMX)

But the USB communication between above and PC(Windows 7 32bit) is interrupted as ''STALL'' after GET_DESCRIPTER(DEVICE QUALIFIER) message and SET_CONFIGURATION message absolutely.

How can I avoid above errors?

Could you please give me any idea?

#discovery #stm32 #usb #device
This topic has been closed for replies.

1 reply

Amel NASRI
ST Technical Moderator
October 7, 2015
Posted on October 07, 2015 at 15:39

Hi yoshioka.shinichiro,

Did you increased the heap size after code generation?

Did you tried the CDC example that you may find in Cube package (for other boards, but you may easily port it to Discover board)? Ex: STM32Cube_FW_F4_V1.8.0\Projects\STM324xG_EVAL\Applications\USB_Device\CDC_Standalone.

-Mayla-

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.