Skip to content

Add custom HardFault handler and catch NaNs #157

@calebchalmers

Description

@calebchalmers

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions