USB mass storage class using raw NAND flash as storage memory

Hi Everyone...........

I m working on a project in that I need USB mass storage implementation for external NAND flash.

I m using LPC2378 uC and I have an example code of USB MSC for LPC2300 that is implemented for internal flash memory of controller. This code is working well on my controller kit.

I do not have much knowledge of MSC. Now I want to use this code for external raw NAND flash.

Could I use this code for my application????

If yes, tehn what and where will I have to modify in the code???

If no, then kindly give me any other solution.........

Thanks in Advance,

Raj

Parents
  • Starting with this example, you can make the device you want.
    But it isn't so easy.

    Learn the stuff you have to modify.
    I've written about the outline of MSC (Mass-Storage Class) implementation on this post.
    http://www.keil.com/forum/docs/thread16271.asp
    3-Mar-2010 10:52 GMT Tsuneo Chinzei

    There are two stages to make it up.
    1) Redirect SCSI commands to NAND FLASH access.

    Read Capacity(10) - return the last LBA (depending on the capacity of the media - NAND FLASH)
    Read(10), Write(10) - redirect block (sector) access to the NAND FLASH
    If you support other optional SCSI commands, you have to modify them all.

    2) Wearout management of the NAND FLASH

    On file system like FAT, FAT and directory sectors on the media are often changed.
    To average the erase cycle among sectors, you have to rotate the target sector.
    Usually, this procedure is implemented using a sector access table, which redirect from logical sector to physical one.

    Tsuneo

Reply
  • Starting with this example, you can make the device you want.
    But it isn't so easy.

    Learn the stuff you have to modify.
    I've written about the outline of MSC (Mass-Storage Class) implementation on this post.
    http://www.keil.com/forum/docs/thread16271.asp
    3-Mar-2010 10:52 GMT Tsuneo Chinzei

    There are two stages to make it up.
    1) Redirect SCSI commands to NAND FLASH access.

    Read Capacity(10) - return the last LBA (depending on the capacity of the media - NAND FLASH)
    Read(10), Write(10) - redirect block (sector) access to the NAND FLASH
    If you support other optional SCSI commands, you have to modify them all.

    2) Wearout management of the NAND FLASH

    On file system like FAT, FAT and directory sectors on the media are often changed.
    To average the erase cycle among sectors, you have to rotate the target sector.
    Usually, this procedure is implemented using a sector access table, which redirect from logical sector to physical one.

    Tsuneo

Children
More questions in this forum