Hi all,
I have a P1023 based board with a nand flash.
Using codewarrior flash programmer I tried to flash u-boot at address 0xff800000 (my nand location).
I am getting the following :
**************************************************************************************************
fl::target -lc "LC for Simple Flash"
fl::target -b 0x2000 0x80000
fl::target -v on -l off
cmdwin::fl::device -d "MT29F2G08ABAEA-eLBC" -o "256Mx8x1" -a 0x0 0xfffffff
cmdwin::fl::image -f "/home/mani/Desktop/u-boot.bin" -t "Auto Detect" -re on -r 0x0 0xfffffff -oe on -o 0xff800000
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Binary/Raw Format.
Image size is 0 bytes, nothing to erase.
Nothing to erase. No sectors selected
Performing target initialization ...
+ e500 Special Purpose Registers
PIR=<r>0</r>
Erase Command Succeeded.
cmdwin::fl::write
Beginning Operation ...
-------------------------
Using restricted address range 0x00000000 to 0x0FFFFFFF
Programming file /home/mani/Desktop/u-boot.bin
Auto-detection is successful.
File is of type Binary/Raw Format.
0 Bytes Programmed, Check Restricted Address Range
Program Command Succeeded
*****************************************************************************************************
If I flashed from 0x00000000, I am getting this :
*****************************************************************************************************
fl::target -lc "LC for Simple Flash"
fl::target -b 0x2000 0x80000
fl::target -v on -l off
cmdwin::fl::device -d "MT29F2G08ABAEA-eLBC" -o "256Mx8x1" -a 0x0 0xfffffff
cmdwin::fl::image -f "/home/mani/Desktop/u-boot.bin" -t "Auto Detect" -re on -r 0x0 0xfffffff -oe off
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Binary/Raw Format.
Performing target initialization ...
+ e500 Special Purpose Registers
PIR=<r>0</r>
Downloading Flash Device Driver ...
Reading flash ID ...
Erasing Sector 0x00000000 to 0x0001FFFF
Erasing Sector 0x00020000 to 0x0003FFFF
Erasing Sector 0x00040000 to 0x0005FFFF
Erasing Sector 0x00060000 to 0x0007FFFF
Erasing ...
Erase Command Succeeded
cmdwin::fl::write
Beginning Operation ...
-------------------------
Using restricted address range 0x00000000 to 0x0FFFFFFF
Programming file /home/mani/Desktop/u-boot.bin
Auto-detection is successful.
File is of type Binary/Raw Format.
Downloading Flash Device Driver ...
Reading flash ID ...
Auto-detection is successful.
File is of type Binary/Raw Format.
Downloading 0x00010000 bytes to be programmed at 0x00000000
Downloading 0x00010000 bytes to be programmed at 0x00010000
Downloading 0x00010000 bytes to be programmed at 0x00020000
Downloading 0x00010000 bytes to be programmed at 0x00030000
Error: Program failed. Can not read target memory at location: 0x 36700.Please make sure that the chip selects are properly configured.
The CWPP response code is: #@!.
Error: Program failed.Can not read target memory at location: 0x 36700.
Please make sure that the chip selects are properly configured.
The CWPP response code is: #@!.
*******************************************************************************************************************************
Any how I am not able to flash. Can any one help me out.
Regards,
Sarath
Solved! Go to Solution.
Hi all,
Flashing done.
Please find attachments.
I simply focused on the the base address providing for eLBC, setting the TLB and LAW.
Any how thank you Catalin and Adrian for your presence.
Regards,
Sarath
Hi Sarath,
Base address for NAND devices in CodeWarrior is 0x00000000. You have to flash the NAND from address 0x00000000. Also, please try with Target RAM Address: 0x0 and Size: 0x40000.
Also, use the correct initialization file. Default for P1023 this is P1023RDS_init_core.tcl.
Adrian
Hi Adrian,
I tried by changing the Target RAM address. But I am getting the following:
************************************************************************************************************
fl::target -lc "LC for Simple Flash"
fl::target -b 0x0 0x40000
fl::target -v off -l off
cmdwin::fl::device -d "MT29F2G08ABAEA-eLBC" -o "256Mx8x1" -a 0x0 0xfffffff
cmdwin::fl::image -f "/home/mani/Desktop/u-boot.bin" -t "Auto Detect" -re on -r 0x0 0xfffffff -oe off
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Auto-detection is successful.
File is of type Binary/Raw Format.
Performing target initialization ...
+ e500 Special Purpose Registers
PIR=<r>0</r>
failed on register write: PC
Downloading Flash Device Driver ...
Reading flash ID ...
Error: Failed reading return status. Can not read target memory at location: 0x C.Please make sure that the chip selects are properly configured.
The CWPP response code is: #@!.
Error: Getting flash ID failed
****************************************************************************************************
Confused . . . what to do ?
Regards,
Sarath
Hello,
can you please tell us
1. is this the un-modified board from Freescale, or a custom modified one ?
2. the CodeWarrior version that you are unsing
regards,
Catalin
Hi Catalin and Adrian,
The board which I am using a custom modified one.
Nand filash : "MT29F2G08ABAEA-eLBC"
Flash size : "256Mx8x1".
Flash chip is connected to eLBC at CS0.
We are using codewarrior V10.3.3.
Board is similar to 1023RDB.
Regards,
Sarath