i.mx257+MCP(1.8v nand and 1.8v LPDDR)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx257+MCP(1.8v nand and 1.8v LPDDR)

3,045 Views
SANDR
Contributor III

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

Tags (2)
0 Kudos
Reply
18 Replies

2,875 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos
Reply

2,875 Views
SANDR
Contributor III

Thanks for your advice very much.I "m so glad that you repaly me. I"ll try it and give you the feedback.

Best regards.

SANDR

0 Kudos
Reply

2,875 Views
igorpadykov
NXP Employee
NXP Employee

Hi SANDR

also it may be useful to check

AN4016 Interfacing and Configuring the i.MX25 Flash Devices

Best regards

igor

0 Kudos
Reply

2,875 Views
SANDR
Contributor III

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

0 Kudos
Reply

2,875 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos
Reply

2,875 Views
SANDR
Contributor III

I can not get it, because I don"t know how to print it.I can"t trace or debug.

~SANDR

0 Kudos
Reply

2,875 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos
Reply

2,875 Views
SANDR
Contributor III

I used Jtag,while it shows "unsupport flash/bus width..."

0 Kudos
Reply

2,875 Views
igorpadykov
NXP Employee
NXP Employee

what is bus width of this NAND ?

0 Kudos
Reply

2,875 Views
SANDR
Contributor III

Input / Output Bus Width: 8-bits ,I/O0I/O7~

0 Kudos
Reply

2,875 Views
SANDR
Contributor III

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

0 Kudos
Reply

2,875 Views
igorpadykov
NXP Employee
NXP Employee

I think you can attach nand datasheet or

provide info about page/spare sizes and ecc number.

~igor

0 Kudos
Reply

2,875 Views
SANDR
Contributor III

There is the datasheet.Thanks very much.

Best regards.

SANDR

0 Kudos
Reply

2,875 Views
igorpadykov
NXP Employee
NXP Employee

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

2,875 Views
SANDR
Contributor III

While I have another question ,do I need to modify the timing of LPDDR before adding my nand?

Best regards.

SANDR

0 Kudos
Reply

2,875 Views
igorpadykov
NXP Employee
NXP Employee

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

2,875 Views
SANDR
Contributor III

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

0 Kudos
Reply

2,875 Views
SANDR
Contributor III

It"s very nice of you that you are so patient and ready to help others.

Thanks very much!

Best reards.

~SANDR

0 Kudos
Reply