How to restore RCW & U-boot of T4240QDS-PB

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

How to restore RCW & U-boot of T4240QDS-PB

968 Views
leejey
Contributor I

Hi,

I've a T4240QDS-PB board and experienced an unexpected operation which corrupt RCW&U-boot from the onboard NOR Flash, I brick it. During the past time, I tried to restore the images lost for NOR flash but it didn't work. I have two debuggers: USBTAP and lauterbach PowerDebug USB 3, which I supposed could be used to flash images. 

My question is does anyone experience such issue and instructs me how to restore it? Much appreciate!!

Labels (1)
0 Kudos
3 Replies

616 Views
ufedor
NXP Employee
NXP Employee

1) select I2C as RCW source by setting SW1[1:8] + SW2[1] = 0_0100_1001 (I2C ext. addr.)

2) use CodeWarrior Flash Programmer to program complete NOR Flash image (128MB) from the "QorIQ Linux SDK v2.0 PPC64E6500 IMAGE.iso".

0 Kudos

616 Views
leejey
Contributor I

Hi ufedor,

I fixed the CCS error issue. But it still doesn't work when programming flash image. I use PowerDebug to view the Flash contents, it shows 0xfeffffff instead of 0xffffffff after I erase a sector. I guess some h/w issue cause this problem. 

0 Kudos

616 Views
leejey
Contributor I

Hi ufedor,

Thanks for your reply. I tried your instruction but I still got some error. 

The first instruction for RCW I supposed it was work and I can attach the T4240QDS board via PowerDebug USB3, which failed to attach target with default RCW location (0_0010_1111). 

The second instruction didn't work yet. I use Flash Programmer of CodeWarrior IDE and create a USBTAP target connection with default T4240QDS template. When I erase and program Flash image, it print errors message at console below and hang: 

fl::target -lc "LC for Simple Flash (2)"
fl::target -b 0x0 0x180000
fl::target -v off -l off
cmdwin::fl::device -d "S29GL01GP" -o "64Mx16x1" -a 0xe8000000 0xefffffff
cmdwin::fl::image -f "C:\\T32_USB3\\demo\\powerpc64bit\\hardware\\qoriq_t4\\t4240qds\\wwj\\QorIQ_SDK_V2.0_T4240QDS_20160527_NOR_Flash.bin" -t "Auto Detect" -re on -r 0xe8000000 0xefffffff -oe on -o 0xe8000000
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Binary/Raw Format.

Performing target initialization ...
Error: Connect Failed.
Failed to reset the target
[CCS last error: T4240: HRESET occurred during transaction ](CCSProtocolPlugin)
Error: Connect Failed.

Could you please look further into it, many thanks.

t4240qds_hreset_error.png

0 Kudos