RT1050 USB and more LUN

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1050 USB and more LUN

1,095 Views
christiangradl
Contributor III

hi,

my usb device with cdc vcom and msc ramdisk is now running.

now i want to have more than one usb disk, e.g. 3 different RAMDISKs with different size

what have i to do for this:

1.) Setting USB_DEVICE_CONFIG_MSC to 3?

      I tried this but it does not work, i still have only one usb drive in windows

2.) set logicalUnitNumberSupported to 3?

      I tried this, i got 3 usb drives in windows, but all 3 drives are the same.

3.) is there a demo for how to setup more than 1 usb disk

thanx

Labels (1)
0 Kudos
Reply
1 Reply

884 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Christian,

All the drives are being shown as the same unit because just one buffer is declared (s_StorageDisk), and it is pointed from all the LUNs. So, the options could be (considering the RAM size):

  1. Creating separate buffers for each logical unit and correctly point them on the USB callbacks.
  2. Partition a single disk unit, in order to have separate units.


Hope this will be useful for you.
Best regards!
/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply