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

Fixes for microcontroller.on_next_reset() on NRF #7468

Merged
merged 1 commit into from Jan 20, 2023

Conversation

DavePutz
Copy link
Collaborator

@DavePutz DavePutz commented Jan 19, 2023

This patch fixes two issues relating to microcontroller.on_next_reset() on NRF boards.

  1. Fixes microcontroller.on_next_reset() behavior discrepancy on nrf #5353. Using the SDK function sd_power_gpregret_set() instead of directly setting NRF_POWER->GPREGRET eliminates
    the problem of immediately resetting the board.
  2. Fixes CP resets to safe mode on calling microcontroller.on_next_reset(microcontroller.RunMode.UF2) #6975. Adding a test for a runmode of RUNMODE_UF2 in addition to RUNMODE_BOOTLOADER avoids the system firmware failure assertion.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks!

@rdoursenaud
Copy link

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants