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

fix: Fix the ESP32-S2 security info response size #73

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

DNedic
Copy link
Contributor

@DNedic DNedic commented Oct 15, 2024

The ESP32-S2 ROM GET_SECURITY_INFO response does not contain chip_id and api_version fields.
Currently, the flasher stub just returns 0 and 0 for these, however chip_id 0 is reserved for the ESP32.
This makes the stub behavior in line with the ROM.

Since this is a single-chip workaround, cfg was chosen instead of creating new traits or using a generic, however that can be remedied in the future if new chips come out with different response sizes.

Closes #65

The ESP32-S2 ROM GET_SECURITY_INFO
response does not contain chip_id and api_version fields.
Currently, the flasher stub just returns 0 and 0 for these, however
chip_id 0 is reserved for the ESP32.
This makes the stub behavior in line with the ROM.

Closes esp-rs#65
Copy link
Collaborator

@dobairoland dobairoland left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

Thanks!

@MabezDev MabezDev merged commit 89d87f3 into esp-rs:main Oct 15, 2024
22 checks passed
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.

ESP32-S2: get_security_info returns more bytes than expected (ESPTOOL-898)
3 participants