We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6631f4 + 3a8d371 commit f788e76Copy full SHA for f788e76
1 file changed
qiling/os/mcu/mcu.py
@@ -27,9 +27,13 @@ def on_start(self):
27
def on_interrupted(self, ucerr: int):
28
self._begin = self.pc
29
30
- # And don't restore anything.
+ # Real silicon would vector to HardFault here; we don't model that, so log and
31
+ # request a clean stop instead of raising — otherwise fast-mode timeouts surface
32
+ # firmware faults as test errors.
33
if ucerr != UC_ERR_OK:
- raise UcError(ucerr)
34
+ self.ql.log.warning(f'fast mode halted: {UcError(ucerr)} at PC=0x{self.pc:08x}')
35
+ self._stop_request = True
36
+ return
37
38
self.ql.hw.step()
39
0 commit comments