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

west: runners: bossac: Honor --erase flag #81894

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

petejohanson
Copy link
Contributor

Instead of unconditionally erasing the whole target, add support for using the common --erase flag.

This tweak is needed to avoid the bossac runner from erasing the whole chip every time it's run, helping preserve things like settings stored to flash when using them on samd21, for example.

Copy link
Collaborator

@pdgendt pdgendt left a comment

Choose a reason for hiding this comment

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

I agree with the change, but the default behavior changes now. This should be added to the migration guide.

@petejohanson
Copy link
Contributor Author

I agree with the change, but the default behavior changes now. This should be added to the migration guide.

Will do. Also noticed the test failure, will work on fixing that up.

@petejohanson petejohanson force-pushed the runners/add-bossac-erase-flag branch 2 times, most recently from 64a62d3 to 393d98a Compare November 25, 2024 21:12
@petejohanson
Copy link
Contributor Author

I agree with the change, but the default behavior changes now. This should be added to the migration guide.

Added a note to the migration guide, fixed the existing tests, and added a new one for the --erase option.

@zephyrbot zephyrbot added the Release Notes To be mentioned in the release notes label Nov 25, 2024
Instead of unconditionally erasing the whole target, add
support for using the common --erase flag.

Signed-off-by: Peter Johanson <[email protected]>
@fabiobaltieri
Copy link
Member

fabiobaltieri commented Nov 25, 2024

@nandojve should the bossac runner be under SAM in the maintaners file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants