16 bit Nand Flash program failed with CodeWarrior 10.5

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

16 bit Nand Flash program failed with CodeWarrior 10.5

Jump to solution
2,239 Views
liujianbo
Contributor II

Hi Experts:

 

when try to flash rcw and u-boot into nand flash(T2080RDB-PCIe_init_sram.tcl hw init script was used), there is the following issue:

 

After connect to target and execute flash programmer actions, it will show:

/************************************************/

Error executing task T2080_Nand

Error: The algorithm was not able to run on the target or the flash is not configured properly.

Error: Getting flash ID failed

Error: The algorithm was not able to run on the target or the flash is not configured properly.

/************************************************/

Looks the basic access to nand flash failed.

 

 

The flash type on board is MT29F8G16ADBDA, because only MT29F8G08ADBDA-IFC was in the support list of Flash Programmer, here use MT29FxG08-IFC.elf as programmer algorithm instead.

 

But the 8 bit and 16 bit will have the different address bus(AD[0:7] to bit8, AD[0:15] to 16 bit), not sure if MT29FxG08-IFC.elf is suitable to 16bit Nand Flash?

If not, do you know how to find a 16bit algorithm  or how to custom a 16bit for this flash

 

 

 

BTW, in Chaper 10 of AN3859.pdf, it show a method to troubleshooting flash programmer issue:

/******************************************/

change p:<address><value><bus-width>
display p:<start_address>..<end_address><bus-width>

/******************************************/

 

If this method can also be used to nand flash? If not, if there are some other way to check nand flash's status?

Labels (1)
0 Kudos
Reply
1 Solution
1,810 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Jianbo,

In the datasheet, it seems that NAND flash parameters for  MT29F8G16ADBDA are similar with the demo board, so please continue use the CW initialization file for demo board.

Please consider about IFC frequency clock, probably this is the cause of the problem. Please pay attention to two points.

1. Maximum IFC_CLK frequency is 100 MHz.

2. The register IFC_CCR[CLKDIV](Clock division ratio) controls IFC clock. The default value of IFC_CCR[CLKDIV] is 4, customers could program IFC_CCR[CLKDIV] to make IFC clock suitable for their target boards, please refer to "Clock Control register (IFC_CCR)" in T2080 Reference User Manual for details.

If the platform clock is 533MHz, IFC clock is 533/4=133, it exceeds the allowed IFC clock frequency.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
3 Replies
1,810 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Jianbo,

I suspect the problem is caused by the improper configuration for IFC controller Timing for your NAND flash.

You need to modify "IFC Controller Setup“ section in CodeWarrior initialization file according to your target board.

If my assistance is needed, would you please provide MT29F8G16ADBDA data sheet and the IFC Clock Frequency? I could help you to calculate these IFC timing parameter.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
1,810 Views
liujianbo
Contributor II

Hi  Yiping:

Many thanks for your kindly helps!!!

Freq(IFC) = Freq(Platform) / 2, we plan to set it to 266.7Mhz, but checked with OSC, it's 133.3.

After look into, it was caused by the config in RCW was not implied into related PLL register:

RCW will set to 8 multiplier (210001 0x100A0013), but in Clocking_PLLPGSR, it was setting to 4 multiplier(0x00000008)

Verified via CLK_OUT, when setting 0x1D000 to Clocking_CLKPCSR(Platform/4), we get 66.7MHz, it means platform clock is 66.66*4 =266.6MHz, is not what we want to set(should be 533MHz), looks the RCW setting was not applied into PLL related register actually.

Anyway, the IFC's Freq is 133.3, the date sheet of MT29F8G16ADBDA, I failed to add doc into this thread(did not find interface to attach doc, only image was permit...), I download it from the following link:

http://www.datasheet4u.com/download_new.php?id=776529

By they way, "You need to modify "IFC Controller Setup“ section in CodeWarrior initialization file according to your target board" means modify codes in Freescale\CW_PA_v10.5.1\PA\PA_Support\Templates\Sources\T2080\T2080RDB-PCIe\T2080RDB-PCIe_init.c, there is  "IFC Controller Setup" section?

0 Kudos
Reply
1,811 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Jianbo,

In the datasheet, it seems that NAND flash parameters for  MT29F8G16ADBDA are similar with the demo board, so please continue use the CW initialization file for demo board.

Please consider about IFC frequency clock, probably this is the cause of the problem. Please pay attention to two points.

1. Maximum IFC_CLK frequency is 100 MHz.

2. The register IFC_CCR[CLKDIV](Clock division ratio) controls IFC clock. The default value of IFC_CCR[CLKDIV] is 4, customers could program IFC_CCR[CLKDIV] to make IFC clock suitable for their target boards, please refer to "Clock Control register (IFC_CCR)" in T2080 Reference User Manual for details.

If the platform clock is 533MHz, IFC clock is 533/4=133, it exceeds the allowed IFC clock frequency.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply