Hi,
I have a board with i.mx257 and MCP.While I use ATK ,downloading .bin file ,it prints "failed to init flash or not support flash model...".I don't why.
I have modifed the ATK source package and added my flash,but it didn't work.Maybe the voltage supply wrong? Could anyone help me?
With regards.
SANDR
Hi SANDR
if you modified ATK, then you easily can add debug printf
to function nand_init(void) in nand_flash.c and check what error happens
IMX_ATK_SOURCE_CODE : Source Code
Best regards
igor
Hi igor,
I added some debug printfs, but it didn"t work.The ATK still prints "Failed to initial flash or Do not support this Flash,please reset the target", no other prints .I use 12x12mm i.mx257 and give nvcc_nfc 1.8v.I don"t find the reason yet.
Best regards.
SANDR
Hi SANDR
what is value of dev_info in nand_init(void) ?
It should return value of your nand:
dev_info = nand_device_get_info(id)
~igor
there are many ways to debug it:
1. use in ATK sources [channel.c]
#ifdef _DEBUG
void atk_debug send to uart
2. run ATK sources with jtag
3. toggle gpio on error condition
~igor
Hi,igor
I think I should figure out some question first.Does i.mx257 support my 1.8V nand? And I just add a nand device info struct in the nand_device_info.c . Its mfr id is 0x01,seems amd"s.
~SANDR
I think you can attach nand datasheet or
provide info about page/spare sizes and ecc number.
~igor
Yes, this SLC NAND (2048 + 64) bytes with 4bit ECC is supported.
Also I would suggest to add to ATK sources ID identification with 3 bytes
(from Table 3-3), to be sure that it was not confused with other NANDs
(one byte "mfr id is 0x01" may be not sufficient, since it can be shared by many NANDs)
~igor
Hi SANDR
yes, first one needs to port new memory to ATK, only then
new NAND. Please look at application note AN3985 "Customizing the Freescale
Advanced Toolkit for i.MX Based Platforms" (rev.0, 2/2010)
in particular sect.3 "Supporting a New SDRAM Device",
sect.4 "Supporting a New NAND Flash Device"
http://www.freescale.com/files/dsp/doc/app_note/AN3985.pdf
~igor
When I select the"download" function of the flash tool in ATK,no matter the "Device memory initial : LPDDR" of the i.MX25_TO1 or the "Device memory initial : DDR2" of the i.MX25_TO1.1, the ATK prints "download successful".But It is not the same as I using "program","eraser" or "dump"function.
Best regads.
~SANDR