cancel
Showing results for 
Search instead for 
Did you mean: 

[Bug] CubeMX generated USB Host file for MSC has typo

bas86
Associate II
Posted on September 30, 2015 at 12:30

In the file ''usbh_msc.c'' generated for STM32F407/427 there is typo in line 446:

446            if((phost->Timer - MSC_Handle->timer) > 10000)

447            {

448              MSC_Handle->unit[MSC_Handle->current_lun].state = MSC_TEST_UNIT_READY;

449              break;

450            }        

     

This condition makes sense if it is < instead of > because of timeout nature of it.

In the case of ''<'' this code does not connect MSC device correctly and returns debug messages like this:

Sense Key  : 6<LF>

Additional Sense Code : 28<LF>

Additional Sense Code Qualifier: 0<LF>

Which means according to 

https://en.wikipedia.org/wiki/Key_Code_Qualifier

 

that device is in ''Unit Attention'' condition and is in process of not-ready to ready transition.

Does any one meets such issue?

What should I do to report this bug to CubeMX developers team?

#usbhost #usb #bug #stm32cube
2 REPLIES 2
thomfischer
Senior
Posted on September 30, 2015 at 19:24

this is fixed in FW_F4_V1.8.0

bas86
Associate II
Posted on October 02, 2015 at 14:33

Thanks, thomas.004.

I get it.