cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 MassStorage with Nand-Flash

elgerta
Associate II
Posted on January 22, 2011 at 19:30

STM32 MassStorage with Nand-Flash

2 REPLIES 2
tsuneo
Senior
Posted on May 17, 2011 at 14:22

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

elgerta
Associate II
Posted on May 17, 2011 at 14:22

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