Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Compact Universal Timing Endpoint based on White Rabbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Compact Universal Timing Endpoint based on White Rabbit
Commits
e1ac2ab1
Commit
e1ac2ab1
authored
Jan 22, 2015
by
Qiang Du
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flash read command
parent
8d7f2984
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
flash_m25p.py
tools/lib-multiboot/flash_m25p.py
+1
-1
No files found.
tools/lib-multiboot/flash_m25p.py
View file @
e1ac2ab1
...
...
@@ -99,7 +99,6 @@ class FlashM25P:
status
=
0
retry
=
3
while
(
status
!=
0x2
):
logging
.
debug
(
'Flash not ready, status: 0x
%
x'
%
status
)
if
(
retry
<=
0
):
raise
IOError
(
'Error writing, status not vaild: 0x
%
x'
%
status
)
logging
.
debug
(
'retry =
%
d'
%
retry
)
...
...
@@ -157,6 +156,7 @@ class FlashM25P:
# send address in reverse order
self
.
spi_transfer
(
3
,
1
,
self
.
rev_addr
(
addr
))
self
.
spi_transfer
(
1
,
1
,
0
)
n
=
nrbytes
# Read bytes in groups of three
while
(
n
/
3
>
0
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment