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

Fault handler #842

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft

Fault handler #842

wants to merge 3 commits into from

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Jan 12, 2020

When this callback is set, it will be called when a critical error happens (such as a HardFault). Additionally, it will be called when a runtime panic happens if the -panic=trap option is used during compilation.

This PR does not implement handling of regular panics yet.

This PR is marked as WIP as it causes a ~200 byte increase in binary size, which is much higher than I expected. I'll see whether I can reduce that a bit.

@magiconair

This flag is useful for running tests for just one target, for example:

    go test -v -target=cortex-m-qemu
When this callback is set, it will be called when a critical error
happens (such as a HardFault). Additionally, it will be called when a
runtime panic happens if the -panic=trap option is used during
compilation.

This commit does not implement handling of regular panics yet.
@firelizzard18 firelizzard18 mentioned this pull request Mar 1, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant