please help me read MT29F2G16 flash via jtag/trace32 from mpc8321 (mpc8323E)

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

please help me read MT29F2G16 flash via jtag/trace32 from mpc8321 (mpc8323E)

1,939 Views
carver_ua
Contributor II

Hi guys.

I have a dozen non-working devices, after bad developers,
the developers forgot to run chkdsk/fsck at startup. 
and after problem with R/W FS, device stop work.
...I have already encountered/repair this case for other vendor too,

so, now these devices don't work.
and i want to fix this error with JTAG.
fixing the file system and writing back.
(yes I know from Bad Block, ECC, Spare and etc
also, I don't have a root password for device,
and there isn't uboot on the device)

so, I have
1) MPC8321 (MPC8323E.pdf)
2) S29GL064N at CS0
3) MT29F2G16 at CS1 - NAND !!!
4) TRACE32 unit with MPC82xx/83xx adapter.


I read S29GL064N via TRACE32/MPC8321, no intresting inside.

but I can't read MT29F2G16 in any way.
I initialize the MPC8321, just as it looks in the bootloader,
Data.Set ANC: IOBASE () + 0x05008 %Long 0x70001081; LBC_BR1
Data.Set ANC: IOBASE () + 0x0500C %Long 0xFFFF8100; LBC_OR1
Data.Set ANC: IOBASE () + 0x00028 %Long 0x70000000; LB_LAWBAR1
Data.Set ANC: IOBASE () + 0x0002C %Long 0x8000000B; LB_LAWAR1
then try 
FLASHFILE.CONFIG IOBASE () + 0x05000 0x0 0x70000000 1
FLASHFILE.TARGET 0x00001000 +0x1fff 0x00003000++0x1FFF nand2g16_ppcpq.bin
but that doesn't help me, I get the error "warning: function not implemented"
I tried different options, but I can't understood what the problem was ((

also, as you can imagine, I haven't support for T32 ))
so I wanted to ask other developers,

maybe someone can help me with TRACE32 config,
or another budget solution, for flash MT29F2G16 via mpc8321 and jtag.

thanks.

/carv
Tags (3)
0 Kudos
Reply
4 Replies

1,915 Views
carver_ua
Contributor II

...delete please

/carv
0 Kudos
Reply

1,923 Views
yipingwang
NXP TechSupport
NXP TechSupport

You could use CodeWarrior for PA 10.5.1 + CodeWarrior TAP.

For flash programming/dumping, please refer to the application note https://community.nxp.com/t5/CodeWarrior-Development-Tools/Flash-Programmer-for-CodeWarrior-Power-Ar... please add and execute the "Dump Flash actions" in PA Flash Programmer Task panel.

In CodeWarrior IDE, please create a bare board project for MPC8323 processor, please select flash device MT29F2G8 in the flash device list.

You could download CodeWarrior 10.5.1 from the following link.

https://drive.google.com/file/d/18YIFeSnzZlcE1ZgSNUlTYM955gh9_B56/view?usp=sharing

You could purchase CodeWarrior TAP from the following link.

https://www.nxp.com/design/software/development-software/codewarrior-development-tools/run-control-d...

1,910 Views
carver_ua
Contributor II

as I understand from goofle and mtd, there are different ways to connect NAND .
1) fsl_elbc_nand.c
2) fsl_ifc_nand.c
3) fsl_upm.c

8323 support only UPM,
and CW for PA and CW TAP only has Flash_Programmer\EPPC\
MT29FxG08-eLBC.elf and MT29FxG08-IFC.elf .

so, for 8323 I need found bootloader for UPM or am I wrong ?


my DTS file received from the bootflash

 

	localbus@ff405000 {
		#address-cells = <0x01>;
		#size-cells = <0x01>;
		compatible = "fsl,mpc8321-localbus\0fsl,pq2pro-localbus";
		reg = <0xff405000 0xd8>;
		ranges = <0x00 0x70000000 0x01>;

		nand-flash@0 {
			compatible = "Micron MT29F2G16ABA\0fsl,upm-nand";
			reg = <0x00 0x01>;
			width = <0x02>;
			upm = [41 00];
			upm-cmd-offset = <0x08>;
			upm-addr-offset = <0x10>;
			gpios = <0x02 0x0f 0x00>;
			wait-pattern;
			wait-write;
			chip-delay = <0x64>;
		};
	};

 

/carv
0 Kudos
Reply

1,914 Views
carver_ua
Contributor II

thanks for answer, i try order CodeWarrior TAP, 
1) but I need 3 week for delivery, 
2) and I'm not sure if 29F2G16 will be read with 29F2G08 config,
3) also in CW SW, all NAND with the "-eLBC" remark,
I see eLBC when mpc8313 is connected to T32.
but on mpc8321/mpc8323 - in T32, i see only LBC.

I see that the simple commands, for working with NAND,
like read nand ID,  use the addresses
 IOBASE()+0x5068
 IOBASE()+0x5070

I can probably write the Flash script myrself,
but it's difficult for me

/carv
0 Kudos
Reply