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.

Nand read/write problem when the code is present in SDRAM..

Hi,

I have a query,

We have a NAND flash and SDRAM connected via same EMIF interface.

When the program is executing from the SDRAM, we are unable to do the Nand operations(read/write).

This issue is may be becasuse, in the program i am calling Nand_init() , where it resets the EMIF and does the initializations for accessing NAND.
Due to reset of EMIF, SDRAM is unable to run the code as it might be loosing its current value because of reset.

We are trying to debug the issue.

Can anyone help/suggest how to resolve this issue...?

Thank you.

  • Is Nand_init() something you wrote or that TI wrote?  How is it resetting the EMIF, through PG1_RST?  If so, that's definitely the issue!  Solution:  Don't do that!

  • Nand_init() is just an abstraction layer i wrote.

    Inside this function i am calling nand_init() and nand_setup() functions which are given by TI.

    Yes.. inside nand_setup he is doing  EMIF reset  through PG1_RST.. He is doing reset as shown below.


                /* Reset EMIF module */
                CSL_FINS(hNand->sysCtrlRegs->PSRCR, SYS_PSRCR_COUNT,
                         CSL_NAND_RESET_COUNT_VAL);

              /* reset Emif Module */
                CSL_FINST(hNand->sysCtrlRegs->PRCR, SYS_PRCR_PG1_RST, NRST);

     

    Thank you for your suggestion, i ill just comment that reset and check.