Question
STMF327-DISCO and ''MSC_Standalone'' example don't work (Bug in USBH MSC lib v3.2.1)?
Posted on July 15, 2015 at 14:22
Hello,
during the last two days I am trying to run the ''MSC_Standalone'' example application from Cube F7 1.1 HAL packege on STM32F7-Discovery using latest IAR compiler (7.40.3). The application is is quite simple (read/write and list files from USB Flash drive), but I didn't manage to get it working. Based on the information on the display it seems that the enumeration and MSC part pass fine (Serial number detected, number of supported LUNs = 1, vendor = Generic, class = 0x08, ...). However, the example fails later on during first occurrence of f_write or f_read with FR_INVALID_OBJECTS error code. During debugging I have found out that MSC_Handle is left cycling in in MSC_IDLE state with error MSC_NOT_READY. If I change the error state into MSC_OK the FatFS starts working (reading, writting, listing files) just fine. Could this be a bug somewhere in USBH_MSC_Process function? I have also tried the FreeRTOS flavor of the same example from the same HAL release, but the problem is the same. I have also tried several different USB Flash drives, but with no luck. The problem seems similar to/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM3241G-EVAL%20-%20STM32Cube_FW_F4_V1.1.0%20-%20USB%20HOST%20MSC&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=585
, but this should be solved long time ago. I have also tried various optimization parameters (like described in previous post) but the result is the same. Has somebody tried the MSC host examples for STM32F7-DISCO? Thanks, ÄŒrt null