Skip to main content
elgerta
Associate II
January 22, 2011
Question

STM32 MassStorage with Nand-Flash

  • January 22, 2011
  • 2 replies
  • 634 views
Posted on January 22, 2011 at 19:30

STM32 MassStorage with Nand-Flash

    This topic has been closed for replies.

    2 replies

    tsuneo
    Associate II
    May 17, 2011
    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
    elgertaAuthor
    Associate II
    May 17, 2011
    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