Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparrow firmware hangs intermittently #3

Open
zfields opened this issue Feb 24, 2022 · 3 comments
Open

Sparrow firmware hangs intermittently #3

zfields opened this issue Feb 24, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@zfields
Copy link
Collaborator

zfields commented Feb 24, 2022

I have noticed on several occasions that my Sparrow device will stop checking in. When the Sparrow gets in this state it appears to be completely seized up.

When it hangs:

  • It will not respond to the PAIR button.
  • It will not respond to t+Enter on LPUART.
  • It will not respond to the debugger.

Interestingly, after a non-deterministic period of time, the Sparrow will resume it's standard behavior (without restarting).

I have logged the memory usage, and there does not appear to be a leak.

Unfortunately, I cannot deterministically reproduce this issue at this time.

@zfields zfields added the bug Something isn't working label Feb 24, 2022
@zfields zfields self-assigned this Feb 24, 2022
@m-mcgowan
Copy link
Contributor

Should we use the watchdog to help guard against hangs where the main processing loop is blocked for an extended period? (e.g. a few minutes.)

Naturally, we want to find the cause of the issue, although using the watchdog will provide a fail-safe fallback until this hang is fixed and for any other unknown stall bugs that we may have.

@zfields
Copy link
Collaborator Author

zfields commented Mar 1, 2022

Yes. I agree a watchdog should be implemented regardless of the outcome of this issue. This consequences of this behavior are too dire with regard to battery life and the overall effectiveness of the system.

As always, the only nagging concern is... Would we have ever noticed this behavior if the watchdog was already in place?

@zfields
Copy link
Collaborator Author

zfields commented Mar 1, 2022

Perhaps the "satisfactory" answer to my question is to improve logging, so we have more visibility into, and/or opportunities to catch, misbehavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants