Dear all,
I am porting Nand flash driver in iMX6X WinCE 7.0 platform. I am using micron's MT29F4G16ABBDAHC nand. nand is not detecting in wince 7.0. once the wince OS is launched i am getting "No NAND type matched" print in the hyper terminal.
i added the following entries for supporting the "MT29F4G16ABBDAHC" nand in the NANDTYPES.h file:
{
{NAND, 4096, 2048 * 64, 64, 2048}, //spare area bytes are not considered
{0x2C, 0xBC, 0x90, 0x55}, //BYTE NANDCode[NANDID_LENGTH]
3, //BYTE NumBlockCycles
5, //BYTE ChipAddrCycleNum
16, //BYTE DataWidth
1, //BYTE BBMarkNum
{0}, //BYTE BBMarkPage
6, //BYTE StatusBusyBit
0, //BYTE StatusErrorBit
64, //WORD SpareDataLength
0x70, //BYTE CmdReadStatus
0x00, //BYTE CmdRead1
0x30, //BYTE CmdRead2
0x90, //BYTE CmdReadId
0xff, //BYTE CmdReset
0x80, //BYTE CmdWrite1
0x10, //BYTE CmdWrite2
0x60, //BYTE CmdErase1
0xD0, //BYTE CmdErase2
{25, 16, 25, 20} //NANDTiming timings
}
The driver is returning the nand id as 0. I configured the GPMICLK to 198MHz, AHB clock to 132MHz.
Please help me to solve this issue.
Regards,
Sowmya
Solved! Go to Solution.
This is obviously SW issue that is difficult to answer here as WinCE7 comes from 3rd party.
Few easy steps to check:
- do you see any activity on NAND bus pins?
- does the driver start to communicate succesfully with the NAND (read ID etc., basic init )
- are clocks to NAND controller enabled?
- are pins set up for NAND operation (no other SW module is reconfiguring IOMUX for other operation)?
this should get you started finding the root cause of problem.
Vladan
This is obviously SW issue that is difficult to answer here as WinCE7 comes from 3rd party.
Few easy steps to check:
- do you see any activity on NAND bus pins?
- does the driver start to communicate succesfully with the NAND (read ID etc., basic init )
- are clocks to NAND controller enabled?
- are pins set up for NAND operation (no other SW module is reconfiguring IOMUX for other operation)?
this should get you started finding the root cause of problem.
Vladan
Dear Vladan,
Thank you for the reply.The APBH is not initialized. After initializing the APBH channel, NAND is detected. Now iam able to read and write to the NAND.
Regards,
Sowmya