STM32H7 USB Composite (AL94 library) with MSC - Timeouts/stalls after SCSI out of bound read
I'm using AL94 library on STM32H7 for USB Composite functionality. The MSC class driver appears practically identical to 'native' MSC Class provided by STM.
However, I am having difficulties running even the simple RAM disk example - the drive is correctly recognized by the system, can be formatted, but after formatting, it just stops responding. If I wait a few minutes, the contents of the drive is correctly displayed (??).
The same example built for STM32F4 discovery board without USB Composite part works just fine.
By comparing the USB traffic logs, I noticed that STM32H7 stops responding after receiving command that is a SCSI read of sector 128 (out of bounds, since only 128 sectors are reported). STM32F4 on the other hand, just stalls the in transfer and continues as nothing has happened...


Any idea on what could be going on? The USB analyzer indicates that the SCSI Read command times out on both Out and In transfers. The line indicated below is the result of the last command received.

