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

Integrate Register Saving from FeatherTrace #8

Open
prototypicalpro opened this issue May 4, 2020 · 0 comments
Open

Integrate Register Saving from FeatherTrace #8

prototypicalpro opened this issue May 4, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@prototypicalpro
Copy link
Member

prototypicalpro commented May 4, 2020

FeatherTrace saves registers pushed onto the stack to a register dump and takes a stacktrace, printing this information on reboot. While a full stacktrace as found in FeatherTrace requires changing compiler flags, saving the pushed registers would only require an inline assembly interrupt handler similar to the one found here. As a result, integrating this feature into FeatherFault would be a useful way to get around being unable to MARK some areas of code while still allowing FeatherFault to be Arduino IDE compatible (unlike FeatherTrace). An external program and the elf from the current build (hopefully compiled with -g3?) would be required to translate the saved address into a line number, but this would be useful information if the line was not MARKed.

The implementation of this ISR would be based on the link above, and would rely on the exception handling behavior in the Cortex-M0+.

@prototypicalpro prototypicalpro added the enhancement New feature or request label May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant