Skip to content

Conversation

@AlessandroA
Copy link
Contributor

Fixes:

@niklas-arm @Patater

Thanks @asensaoui @janjongboom for also reporting this.

Copy link
Contributor

@Patater Patater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlessandroA
Copy link
Contributor Author

@Patater added clarification regarding reboot from a debug box handler.

/* Remember that debug_deprivilege_and_return() has been called once.
* We'll reboot after the debug handler is run, so this will go back to
* zero after the reboot. */
/* Remember that debug_deprivilege_and_return() has been called once. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps note that the debug box can only be entered once, to avoid the debug box calling itself recursively. This is probably important enough to go into the documentation (not just comments) as well, as this limits what you can do after the debug box runs before you have to reboot. For instance, you can't catch a fault and then restart that box and catch a subsequent fault; you get one debug box entry per boot. This means you pretty much have to reboot.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated with improved docs before the code snippet (the comment has not been changed).

A handler registered to the debug box does not cause the system to
reboot any more. By default, the system is halted, instead.

A user can still request that the system reboots from within a debug box
handler, by calling the `NVIC_SystemReset()` API. This API can only be
called by the debug box when uVisor is enabled.
@AlessandroA AlessandroA force-pushed the docs_update_debugging branch from a6f13de to 052f6a3 Compare January 19, 2017 15:13
Copy link
Contributor

@Patater Patater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlessandroA AlessandroA merged commit 37d2c34 into ARMmbed:master Jan 19, 2017
@AlessandroA AlessandroA deleted the docs_update_debugging branch January 19, 2017 15:25
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.

2 participants