Skip to content

Conversation

@bugadani
Copy link
Contributor

@bugadani bugadani commented Apr 3, 2025

Closes #631

This PR allows specifying a partition label for write-bin, in addition to a numeric address. If a partition label is passed, espflash tries to parse the provided/configured partition table, and resolve the label. This information is then used to a) check the size of the flashed binary and b) specify the address where the binary should be written.

As an alternative approach, we might read back the partition table from the device itself. Since users have the option to configure a partition table in a config file, this option would need a --read-idf-partition-table-from-device or similar flag, meaning it can still be implemented without breaking the command's current behaviour.

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

LGTM! Could we add a HIL test for this?

@bugadani
Copy link
Contributor Author

bugadani commented Apr 4, 2025

whoops that's a different pr 🙈

@bugadani bugadani force-pushed the partition branch 2 times, most recently from e52cb98 to 4602be6 Compare April 4, 2025 12:03
@SergioGasquez SergioGasquez added this pull request to the merge queue Apr 4, 2025
Merged via the queue into main with commit 8137c43 Apr 4, 2025
39 checks passed
@bugadani bugadani deleted the partition branch April 4, 2025 13:09
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

Successfully merging this pull request may close these issues.

Allow a partition as a target for write-bin

3 participants