Hello everyone,
I am using MQX4.1 CW10.6 & MK60FX512VLQ12 controller on our custom board.
I have tested nandflash demo example on TWRK60F120M & is working fine.Now I am trying it on my custom board & getting output as
MQX NAND Flash Example Application
==================================
NAND Flash device nandflash: opened
Obtaining NAND Flash organization data ...
ID: 0x0
Physical page size: 2048 bytes
Spare area size: 64 bytes
Block size: 131072 bytes
Number of blocks: 2048
Width: 16
Number of virtual pages: 524288
Virtual page size: 512 bytes
Block #1 is bad
Block #2 is bad
Block #3 is bad
Block #4 is bad
Block #5 is bad
Block #6 is bad
............
Block #2047 is bad
Size of the write buffer allocated in RAM: 16384 bytes
Erasing block #0 failed.
Writing data to 16 virtual pages of block #0 ... Done
Reading data back from 16 virtual pages of block #0 ... Failed
Comparing data ... Compare failed
I have done clock setting
SIM_CLKDIV4 &= 0x00FFFFFF; /* clear 8 most significant bits */
SIM_CLKDIV4 |= SIM_CLKDIV4_NFCDIV(7);
as given in discussion -
Re: FFS on NANDFLASH of TWR-K70 (MQX 4.0.1)
this is also not working.What may be wrong in this.
Any solution?
Thanks for the help.
Hi T tech;
It is necessary to check the hardware connections; does the custom board have the same hardware connection than the TWR-K60F120M?
We have non-MQX project for NAND Flash Controller(NFC). please use the KINETIS_120MHZ_SC sample code to evaluate nfc. This is in order to isolate the issue.
Please download the code from the link below:
https://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS_120MHZ_SC&appType=file2&lo...
see path ..\KINETIS_120MHZ_SC\KINETIS_120MHZ_SC\build\cw\nfc
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Sol,
Thanks for the reply.
Hardware connection is same as TWRK60F120M.
Done some touch up to MK60FX512VLQ12 & now its working fine.
Thanks.