T1042D4RDB failure to write to flash from u-boot

cancel
Showing results for 
Search instead for 
Did you mean: 

T1042D4RDB failure to write to flash from u-boot

Jump to solution
272 Views
oyvind_harboe
Contributor I

I'm having trouble writing to NOR flash from u-boot.

Any ideas?

=> protect off 0xec920000 +0x9e0000
Un-Protected 79 sectors
=> erase 0xec920000 +0x9e0000

............................................................................... done
Erased 79 sectors
=> cp.b 0x1000000 0xec920000 1809840
Copy to Flash... 9....8....7....6....5....4....3....2....Flash not Erased

0 Kudos
1 Solution
188 Views
ufedor
NXP TechSupport
NXP TechSupport

The "1809840" is too large as 'count'.

All U-Boot commands expect numbers to be entered in hexadecimal input format.

View solution in original post

0 Kudos
2 Replies
188 Views
oyvind_harboe
Contributor I

Thanks! How silly of me.

When I correct my command to use hexadecimal, it works.

Wrong:

cp.b 0x1000000 0xec920000 1809840

Correct:

cp.b 0x1000000 0xec920000 0x1b9db0

0 Kudos
189 Views
ufedor
NXP TechSupport
NXP TechSupport

The "1809840" is too large as 'count'.

All U-Boot commands expect numbers to be entered in hexadecimal input format.

View solution in original post

0 Kudos