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 Ability to Restart Applications #146

Closed
bradjc opened this issue Oct 18, 2016 · 4 comments
Closed

Add Ability to Restart Applications #146

bradjc opened this issue Oct 18, 2016 · 4 comments
Assignees

Comments

@bradjc
Copy link
Contributor

bradjc commented Oct 18, 2016

It would be great to be able to restart apps if they crash (or upon demand if the kernel detects they aren't working).

An extra fancy option might be to add the ability to configure the board in one of three modes:

  1. stop: What we do now, where any hardfault prints the registers and stops.
  2. print_and_reboot: Print the hardfault error and then restart the MCU.
  3. reboot: Immediately restart the MCU on any failure.
@alevy
Copy link
Member

alevy commented Sep 28, 2017

This is now implemented as an argument to load_processes

@alevy alevy closed this as completed Sep 28, 2017
@bradjc
Copy link
Contributor Author

bradjc commented Sep 28, 2017

That is true, but it eventually gets to:

https://github.com/helena-project/tock/blob/4ed764ffd399dcc3d7d344fd7cadf108362ad960/kernel/src/process.rs#L805-L814

which is why this is still open.

@bradjc bradjc reopened this Sep 28, 2017
@alevy
Copy link
Member

alevy commented Sep 28, 2017

Oh, yep...

@bradjc bradjc added this to Non-critical in Tock Rolling Release May 1, 2018
@bradjc
Copy link
Contributor Author

bradjc commented May 22, 2018

I'm also thinking that we may want some mechanism to panic the system or provide more information when certain apps crash. For example, we have the crash_dummy app to make it possible to print all of the app status/address info on demand, and we may want to continue to allow that, while still auto-restarting other apps.

@bradjc bradjc closed this as completed May 26, 2018
Tock Rolling Release automation moved this from Non-critical to Done May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants