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

Add custom HardFault handler and catch NaNs #157

Open
calebchalmers opened this issue Nov 10, 2024 · 0 comments
Open

Add custom HardFault handler and catch NaNs #157

calebchalmers opened this issue Nov 10, 2024 · 0 comments
Assignees
Labels
feature New feature

Comments

@calebchalmers
Copy link
Contributor

NaNs result from things like dividing by zero and can silently causes a lot of issues. We should try to raise exceptions in these cases, if possible, to make the issue as obvious as possible. The same thing goes for other unhandled exceptions. Currently, the Dev Board will silently crash and this makes debugging difficult. Simply beeping the buzzer in a custom HardFault handler is likely a good way to notify the operator when something is wrong.

@calebchalmers calebchalmers added the feature New feature label Nov 10, 2024
@calebchalmers calebchalmers self-assigned this Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant