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

watchdog_reboot into flash should set some scratch fields #11

Open
kilograham opened this issue Oct 6, 2021 · 0 comments
Open

watchdog_reboot into flash should set some scratch fields #11

kilograham opened this issue Oct 6, 2021 · 0 comments

Comments

@kilograham
Copy link
Contributor

kilograham commented Oct 6, 2021

When we reboot into RAM we indicate this via

watchdog_hw->scratch[4] = 0xb007c0d3;
watchdog_hw->scratch[5] = pc ^ -0xb007c0d3;
watchdog_hw->scratch[6] = sp;
watchdog_hw->scratch[7] = pc;

however on rebooting into flash we only reset scratch[4] to 0 (which is also done on the watchdog boot path in the bootrom).

It would be nice to be able to detect a bootrom reset vs another type of watchdog reset explicitly.

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

No branches or pull requests

1 participant