Question
HAL_PCD_EP_GetRxCount returning wrong value ?
Posted on May 18, 2017 at 20:28
I'm using
STM32Cube_FW_L4_V1.6.0 for long bulk transfers (up to 4096 bytes). When the stm32 receives a packet longer that 64 bytes, HAL_PCD_EP_GetRxCount returns a number 1-64 (e.g. a packet of 1024 returns a length of 64). The received data seem to be correct, so I'm confused about the incorrect packet length (plus it's impossible to detect errors !). Has anybody seen a similar problem ?
Geoffrey