Skip to main content
Associate II
June 3, 2024
Question

Multiple LUN on STM32H753 is not working over windows

  • June 3, 2024
  • 2 replies
  • 907 views

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

 

This topic has been closed for replies.

2 replies

ABOUA
ST Employee
July 1, 2024

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

Associate II
July 1, 2024

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.