AnsweredAssumed Answered

STM32F429 USB CDC Bulk data receive problem

Question asked by urbanek.mirek on Feb 12, 2016
Latest reply on Feb 18, 2016 by urbanek.mirek
Hi all, I am trying to develop my own DisplayLink device with STM32F429 Discovery board. I use CDC as a template of it. Whole edited enumeration pass OK. But when I need to receive data from EP 1 (OUT Bulk) than occurs a problem.
I have whole project generated from Cube MX.

This way I am trying to read data
 
uint8_t ht[4620];
uint8_t result = USBD_OK;
do
{
   result = USBD_CDC_SetRxBuffer(pdev,  ht);
}
while(result != USBD_OK);
do
{
   result = USBD_CDC_ReceivePacket(pdev);
}
while(result != USBD_OK);
 
HuffmanTable = ht;

But it doesn´t send success response to USB host.

Thanks for any help.

Outcomes