Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Copy back operation is not working in NAND Flash

Hi all,

I'm using micron NAND flash device and able to read/write and erase the page.Now i want to use copy-back operation .

Here is the sequence i followed,

http://www.alteraforum.com/forum/attachment.php?attachmentid=11180&stc=1

I'm not getting any interrupt after using this commands.

Please provide working example if any!:confused:

Regards,

Surendran

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Now I'm able to get the Copy-back complete interrupt.But data is not copied from source to destination address.

    I have written some value manually to source block and when i read back the values in destination block ,its 0xFF.

    Below code command i used for copy-back operation :

    OUTREG32(g_pNandData,0x08000000 | (srcBlkNum << 7) | 0x0);

    OUTREG32(g_pNandData+0x10,0x1000);

    OUTREG32(g_pNandData,0x08000000 | (dstBlkNum << 7) | 0x0);

    OUTREG32(g_pNandData + 0x10,(0x1100 | iNumPages));

    What i am missing in this commands??

    note:

    g_pNandData - Data memory(1 MB)

    srcBlkNum - source block address to be copied.

    dstBlkNum - Destination block address.

    iNumPages - number of pages need to be copied

    Regards,

    Surendran