2024-06-03 03:18 AM
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
2024-07-01 01:50 AM
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
Regards
2024-07-01 02:32 AM
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.