AnsweredAssumed Answered

CubeMX USB CDC Problem

Question asked by Hossein mokhtare on Aug 18, 2017
Latest reply on Feb 10, 2018 by gbm

i am working with STM32F446RE in a custom board and my Cube MX version is 4.22.0 and CubeF4 version is 1.16.0

i want to send large data from USB HS in CDC class to PC.i don't change any cube parameters except Enable IP Internal DMA that i set this enabled.

the code that i used to send data is:


#define TEST_PACKET_LEN                                    1024

uint8_t test_buff[TEST_PACKET_LEN];




this works.but when i change the TEST_PACKET_LEN to 2048 first packet would be sent but after it USB TX busy will never reset and code loops on inner while.i check the code and see that no interrupt occurs on OTG_HS_IRQHandler.

i guess this is a driver bug.can any one help me?