USBD MSC does not support more than 2 luns #4
Labels
enhancement
New feature or request
internal bug tracker
Issue confirmed and logged into the internal bug tracking system
mw
MW-related issue or pull-request
spotted before customer
Spotted internally before being pointed out by the user but not yet fixed or published
usb
Universal Serial Bus
wontfix
This will not be worked on
Hello,
In the function MSC_BOT_CBW_Decode() of the file usbd_msc_bot.c, there is the following judgment:
As shown in the above code, when (hmsc->cbw.bLUN > 1U) is established, it will be judged as an illegal request. Therefore, the legal value of hmsc->cbw.bLUN can only be 0 or 1. For this reason, USBD MSC can only support a maximum of 2 luns.
Why not add a MSC configuration macro definition in the file usbd_conf_template.h to configure the maximum number of luns supported?
The text was updated successfully, but these errors were encountered: