Closed Nomidia closed 1 year ago
Hi @Nomidia
Thank you for the detailed back trace and logs. This issue is mainly applicable to the linux platform port we supply for the demos, as it does not implement pal.reset
. On an actual MCU, this trace should end at step 4, where after returning from user's OtaJobEventSelfTestFailed
handler the MCU is reset.
However, I think you've still pointed out a valid race condition as it's theoretically possible the selftest timer expires before reset is called, if the test duration were unreasonably tiny enough. I think you're right, the self-test timer should be stopped here. I'll prepare a PR.
I believe this has been fixed by commit in OTA repo. It has been patched into this repo, too. So, I'm going to close this issue.
Thanks a lot!
Steps to reproduce:
segfault.log
I think it will be better if we can stop the timer.