Skip to content

Commit baab108

Browse files
committed
Fix wait for ACK byte after write finished
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 4d993d5 commit baab108

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

siwiflasher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,9 @@ def da_write_data(self, data, block=4096):
396396
#print("crc", hex(w))
397397
c += w
398398
data = data[block:]
399-
r = self.send(NONE, 3)
399+
for i in range(3):
400+
r = self.send(NONE, 1)
401+
ASSERT(r == ACK, "MEM Write Error")
400402
r = self.send(struct.pack(">H", c & 0xFFFF), 1)
401403
# <-- 14175A is error
402404

0 commit comments

Comments
 (0)