TotalLUNs

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

TotalLUNs

1,059 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by danhauck on Wed Feb 13 06:25:43 MST 2013
Hi, has anybody tested the TotalLUNs functionality for the usb-stack? When I`m defining it to 3 there is only the scsi inquiry, request sense, ... for lun 0. Lun 1 and 2 is ignored.

Does anybody knows whats going wrong?

Regards

Daniel
标签 (1)
0 项奖励
回复
1 回复

1,048 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by danhauck on Wed Mar 06 02:14:24 MST 2013
Hi all,

I solved the problem. Windows prohibits Multiple LUNs if theres no serialnumber in the usb descriptor

So I changed the .SerialNumStrIndex in the Descriptors.c to 0x04 and added

uint8_t SerialNoString[] =
{
  USB_STRING_LEN(12),
  DTYPE_String,
  WBVAL('U'),
  WBVAL('C'),
  WBVAL('R'),
  WBVAL(' '),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('0'),
  WBVAL('1'),
};
USB_Descriptor_String_t *SerialNoStringPtr = (USB_Descriptor_String_t*)SerialNoString;


and added in function CALLBACK_USB_GetDescriptor in case DTYPE_String the case 0x04

Address = SerialNoStringPtr;
Size    = pgm_read_byte(&SerialNoStringPtr->Header.Size);
break;

Regards

Daniel


0 项奖励
回复