[stm32u585 USB] Modifying RxFIFO size twice before HAL_PCD_Start breaks EP0_IN transmission
Hello,
I have encountered a critical issue regarding the USB OTG peripheral FIFO allocation during the static initialization phase (before calling HAL_PCD_Start() ).
The Issue:
If I resize the Rx/Tx FIFOs twice with the sequence of "Large Size first, then Small Size", the Endpoint 0 (EP0 IN) completely fails to transmit any data (it freezes/stalls) after the hardware starts.
- Scenario A (Works perfectly):
Set Rx FIFO to0x100(Words) ➡️ Set Tx FIFO 0 to0x16. (Single configuration works). - Scenario B (Fails completely):
First call: Set Rx FIFO to0x100, Tx FIFO 0 to0x16.
Second call (immediately after): Set Rx FIFO to0x25, Tx FIFO 0 to0x16.
Result: EP0 IN never transmits any packet afterward.
My ultimate goal is to dynamically reconfigure and shrink the FIFO layout at runtime when receiving the SET_CONFIGURATION request from the host, allowing the device to adapt to different configurations
