T1042D4RDB failure to write to flash from u-boot

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

T1042D4RDB failure to write to flash from u-boot

Jump to solution
836 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
752 Views
ufedor
NXP Employee
NXP Employee

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
752 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
753 Views
ufedor
NXP Employee
NXP Employee

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

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

0 Kudos