This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

A RTOS project Using nand flash



I learned to write nand flash, but I met a problem. When I used the platform_device_write() to wtite the flash, first I wrote to the fiist page of the first block and I made it. Then I wrote to the second page. But after I wrote to the third page, I found that the contents of the second page had changed to the contents of the first page. After the forth page wrote, the third changed to  the first too. What happend?I use the EVMC6657l.

  • Hi Ning,

    What package are you using to write the nand flash ? Can you also share the BIOS version you are using ?

    Best,

    Ashish

  • Hi Ashish,I run the progect"C:\ti\mcsdk_2_01_01_04\tools\writer\nand\evmc6657l". I have read the source code of the platform.c but I found that  the function platform_device_write function, about the 1530 lines, was wrong ,I think the" bufindex" should be placed by "index". But I'm not sure.

  • Hi Ning,

    I looked at the platform_device_write() function and it looks correct to me. I am not an expert on the flash tool in MCSDK and will therefore get your thread moved to the C6x multicore forum. They will be able to help you out better with this issue.

    Best,

    Ashish

  • Hi Ashish

    Thanks for your help.

    Best.

    Ning

  • Hi Ning,

    We can confirm that there is no known bug in the NAND writer so you can refer to it as reference code. IF you are writing your own NAND flash writer, we recommend that you spend some time to understand the geometry of the NAND flash part on the EVM. The NAND on the EVM is a Micron part MT29F1G08ABCHC so please look up the data sheet. The NAND is connected to the EMIF interface on the EVM so you will need to setup the EMIF registers to talk to the NAND flash on the correct chip select and set it up to generate 4 bit ECC.

    You can use the NAND writer in the MCSDK as reference to understand the initialization and let us know if you have any questions regarding the same.

    Regards,

    Rahul