2011-01-22 10:30 AM
STM32 MassStorage with Nand-Flash
2011-05-17 05:22 AM
These files should be touched.
usb_prop.c: just Nax_Lun initialization value is touched.
mass_mal.c: all subroutines are touched for swapped LUN
scsi_data.c: swap Standard_Inquiry_Data[] and Standard_Inquiry_Data2[]
> But if I set MAXLUN to 0, the NAND-Flash is shown but without any capacity.
Maybe you fail modification of MAL_GetStatus(), which returns capacity of target media.
Tsuneo
2011-05-17 05:22 AM
I've checked again the MAL_GetStatus() at mass_mal.c and seen that I've overlooked that the calculation of Mass_Memory_Size is hard coded and depends not on the variable lun.
After change of e.g. Mass_Block_Count[1] = NAND_ZONE.... and so on into Mass_Block_Count[lun] = ..., Mass_Block_Size[lun]..., everthing works well. Means my problem is solved.. Regards Achim