summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-06-07 06:29:56 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2011-06-07 06:29:56 (GMT)
commite9c700c69e5d8e53c386a051a96ac5935b6efeaa (patch)
tree6a8bc8805a51359767454c069d422c2ac8c1ec17
parent68ce15c1c156c6e6ec9ecdd756a8472bc235ce52 (diff)
downloadde1flash-e9c700c69e5d8e53c386a051a96ac5935b6efeaa.zip
de1flash-e9c700c69e5d8e53c386a051a96ac5935b6efeaa.tar.gz
de1flash-e9c700c69e5d8e53c386a051a96ac5935b6efeaa.tar.bz2
de1flash-e9c700c69e5d8e53c386a051a96ac5935b6efeaa.tar.xz
de1flash.tcl: flash commands are zero-extended on the data bus
The upper bytes of the data bus are supposed to be zero for a 16/32-bit flash part (portability fix.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--de1flash.tcl12
1 files changed, 6 insertions, 6 deletions
diff --git a/de1flash.tcl b/de1flash.tcl
index 0a4fa76..45c5d11 100644
--- a/de1flash.tcl
+++ b/de1flash.tcl
@@ -150,12 +150,12 @@ proc fl_erase addr {
if { ![string match $ze $zc] } {
# puts "\nNot blank, expected $ze got $zc"
- fl_send 81AAAAAAAAAAAAAAAA
- fl_send 815555555555555555
- fl_send 81AAAAAAAA80808080
- fl_send 81AAAAAAAAAAAAAAAA
- fl_send 815555555555555555
- fl_send [format "81%08X30303030" $secaddr]
+ fl_send 81AAAAAAAA000000AA
+ fl_send 815555555500000055
+ fl_send 81AAAAAAAA00000080
+ fl_send 81AAAAAAAA000000AA
+ fl_send 815555555500000055
+ fl_send [format "81%08X00000030" $secaddr]
set read_cmd [format "D0%08X%08X" $secaddr 8]