cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple LUN on STM32H753 is not working over windows

ranganath_b_rangaramu
Associate III

Hi Team,

       I am working on USB MSC to have multiple LUN (2 to 3) on RAM to be visible on windows. With same code we can see 2 partitions on Linux PC. Below are some details on code changed.

1. Added extra LUN in STORAGE_Inquirydata[] {

/*LUN 0*/

/*LUN 1*/

}

2. Changed MACRO for LUN_NBR to 2.

3. Handled read and write accordingly for 2 LUN. 

When connected to a Windows machine, all descriptors go through and it also queries MAX_LUN and we see it as (LUN_NBR - 1). But subsequent scsi related queries are only done on LUN 0 and not on LUN 1.

 

Is there anything that we are missing?

Regards,

BRR

 

2 REPLIES 2
ABOUA
ST Employee

Hello,

The multi LUN storage is not yet added in the ST USB device lib, but some trials was proposed in ST GitHub that you could take as reference 

Fix USB MSC more than 2 LUNs support by Igorbunow · Pull Request #41 · STMicroelectronics/STM32CubeL4 (github.com)

Regards

ranganath_b_rangaramu
Associate III

Hi Aboua,

       Thanks. I shall check these changes as well. 

We could make it work somehow as we could not get quick response from the community. 

Regards.