We used CW 10.5.1 program uboot image(512kbytes) into P1010RDB NOR flash, but cw show "Image size is 0 bytes, nothing to erase."

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

We used CW 10.5.1 program uboot image(512kbytes) into P1010RDB NOR flash, but cw show "Image size is 0 bytes, nothing to erase."

Jump to solution
1,004 Views
chuxiankai
Contributor II

We used CW 10.5.1 program uboot image(512kbytes) into P1010RDB NOR flash, but cw report "Image size is 0 bytes, nothing to erase."

 

The logInfo of CW operate as follow:

 

fl::target -lc "P1010RDB-NOR-Bootrom-PROGRAM"

fl::target -b 0x2000 0x30000

fl::target -v off -l off

cmdwin::fl::device -d "JS28F256M29EWL" -o "16Mx16x1" -a 0xfe000000 0xffffffff

cmdwin::fl::protect all off

Beginning Operation ...  

-------------------------

Performing target initialization ...  

Downloading Flash Diagnostics Driver ... 

Reading flash ID ...

Unprotecting all sectors... 

Unprotecting ... 

Unprotecting .... 

Unprotecting ..... 

Unprotecting ...... 

Unprotect Command Succeeded  

cmdwin::fl::image -f "F:/C00136699/workspace/P1010RDB0-core00/uboot.bin" -t "Auto Detect" -re on -r 0xfe000000 0xffffffff -oe on -o 0x1f80000

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

Erase Command Succeeded. 

cmdwin::fl::write

Beginning Operation ...  

-------------------------

Using restricted address range 0xFE000000 to 0xFFFFFFFF 

Programming file F:/C00136699/workspace/P1010RDB0-core00/uboot.bin 

  File is of type Binary/Raw Format. 

 

0 Bytes Programmed, Check Restricted Address Range 

Program Command Succeeded 

Labels (1)
1 Solution
561 Views
addiyi
NXP Employee
NXP Employee

Make sure you have the correct settings.Also, use the correct address offset for programming uboot.

pastedImage_0.png

Adrian

View solution in original post

0 Kudos
4 Replies
561 Views
chuxiankai
Contributor II

Hi Yiping,

I specify the address as 0xfff80000(because my uboot size is 512KBytes), the board was bootup successfully.

Thanks!

0 Kudos
561 Views
chuxiankai
Contributor II

Hi Adrian,

Thanks your efficiently suggest, the issue was resolved after modify the settings of address offset.

I think the program address format is flash base address plus address offset, so it cause I cannot program flash.

my uncorrected settings as follow:

CW_NOR_Program_settings.PNG

Chu

0 Kudos
561 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please use the effective address for u-boot, there are two banks for P1010RDB NOR Flash.

For bank0, please  specify the Address as "fff40000".

For bank1, please specify the Address as "fef40000".


Have a great day,
Yiping

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

0 Kudos
562 Views
addiyi
NXP Employee
NXP Employee

Make sure you have the correct settings.Also, use the correct address offset for programming uboot.

pastedImage_0.png

Adrian

0 Kudos