Commit f34fa95c authored by Tristan Gingold's avatar Tristan Gingold

charm-test.py: always write to mailboxes

parent 352343f7
......@@ -724,9 +724,10 @@ def run():
print("mailbox error: expect {:08x}, read {:08x}".format(
mbx0_exp, mbx0_val))
mbx0_err += 1
mbx0_nval = rnd.randint(0, (1<<32) - 1)
s.cmd("mbox 0 0x{:08x}".format(mbx0_nval))
mbx0_exp = (mbx0_nval + 1) & 0xffffffff
# Always write so we are not stuck
mbx0_nval = rnd.randint(0, (1<<32) - 1)
s.cmd("mbox 0 0x{:08x}".format(mbx0_nval))
mbx0_exp = (mbx0_nval + 1) & 0xffffffff
csv.add('mbx0-err', mbx0_err)
do_plc_supervisor(s, csv, verbose, 1)
......@@ -744,9 +745,10 @@ def run():
print("mailbox error: expect {:08x}, read {:08x}".format(
mbx1_exp, mbx1_val))
mbx1_err += 1
mbx1_nval = rnd.randint(0, (1<<32) - 1)
s.cmd("mbox 1 0x{:08x}".format(mbx1_nval))
mbx1_exp = (~mbx1_nval) & 0xffffffff
# Always write so we are not stuck
mbx1_nval = rnd.randint(0, (1<<32) - 1)
s.cmd("mbox 1 0x{:08x}".format(mbx1_nval))
mbx1_exp = (~mbx1_nval) & 0xffffffff
csv.add('mbx1-err', mbx1_err)
csv.add('flash-err', s.nbr_flash_err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment