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

nordic: west flash no longer supports changing CONFIG_GPIO_PINRESET when flashing #31055

Closed
pabigot opened this issue Dec 30, 2020 · 1 comment
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@pabigot
Copy link
Collaborator

pabigot commented Dec 30, 2020

6628a16 changed the behavior of west flash, which formerly used --eraseall which clears both flash and UICR. CONFIG_GPIO_PINRESET=n is intended to support not programming NRF_UICR->PSELRESET to co-opt the reset pin for the reset function, instead leaving it available for the application to use as a button.

It appears that the west change prevents these registers in UICR from being cleared, so that flashing a new image that changes the intended PSELRESET value has no effect.

The workaround is bypass west and use nrfjprog --eraseall, but there probably should be some way to do it in west.

@pabigot pabigot added the bug The issue is a bug, or the PR is fixing a bug label Dec 30, 2020
@nashif nashif added the priority: low Low impact/importance bug label Jan 5, 2021
@mbolivar-nordic
Copy link
Contributor

there probably should be some way to do it in west.

There is, for the nrfjprog runner, which supports west flash --erase. Please reopen if I'm missing something and that's not what you mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants