Question
The BUG of ''usbh_msc.c'' in ''STM32Cube_FW_F4_V1.7.0''
Posted on August 27, 2015 at 06:23
There are two problem:
1. At ST's page for STM32Cube_F4, the version shows ''1.8.0'', but after downloading, the version actually is ''STM32Cube_FW_F4_V1.7.0'', why? 2. In file ''STM32Cube_FW_F4_V1.7.0\Middlewares\ST\STM32_USB_Host_Library\Class\MSC\Src\usbh_msc.c'', line ''446'':
1.
if
((phost->Timer - MSC_Handle->timer) > 10000)
2.
{
3.
MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_TEST_UNIT_READY;
4.
break
;
5.
}
The ''>'' should be ''<'' or ''<=''. Or some USB disks won't work at this version!!!!