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

Add ESP32-C6 and ESP32-H2 support for get_security_info #60

Merged
merged 1 commit into from
May 10, 2024

Conversation

dobairoland
Copy link
Collaborator

@dobairoland dobairoland commented May 10, 2024

esp-flasher-stub v0.2.0 with esptool.py produces the following error for ESP32-C6 and ESP32-H2:

A fatal error occurred: Failed to get security info (result was 01C3: Unknown result)

This PR solves the above issue.

`--> esptool.py --port /dev/ttyUSB0 --chip esp32c6 get_security_info
esptool.py v4.7.0
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-C6 (QFN40) (revision v0.0)
Features: WiFi 6, BT 5, IEEE802.15.4
Crystal is 40MHz
MAC: xxxxxxxxxxxxxxx
BASE MAC: xxxxxxxxxxxx
MAC_EXT: xxxxxxxxx
Uploading stub...
Running stub...
Stub running...

Security Information:
=====================
Flags: 0x00000000 (0b0)
Key Purposes: (0, 0, 0, 0, 0, 0, 12)
Chip ID: 13
API Version: 0
Secure Boot: Disabled
Flash Encryption: Disabled
SPI Boot Crypt Count (SPI_BOOT_CRYPT_CNT): 0x0
Hard resetting via RTS pin...

`--> esptool.py --port /dev/ttyUSB0 --chip esp32h2 get_security_info
esptool.py v4.7.0
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-H2 (revision v0.2)
Features: BLE, IEEE802.15.4
Crystal is 32MHz
MAC: xxxxxxxxxxxx
BASE MAC: xxxxxxxxxxx
MAC_EXT: xxxxxxx
Uploading stub...
Running stub...
Stub running...

Security Information:
=====================
Flags: 0x00000000 (0b0)
Key Purposes: (0, 0, 0, 0, 0, 0, 12)
Chip ID: 16
API Version: 0
Secure Boot: Disabled
Flash Encryption: Disabled
SPI Boot Crypt Count (SPI_BOOT_CRYPT_CNT): 0x0
Hard resetting via RTS pin...

Internal reference: ESPTOOL-848

@dobairoland
Copy link
Collaborator Author

@SergioGasquez @radimkarnis PTAL

Copy link
Contributor

@JurajSadel JurajSadel left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for contribution!

@JurajSadel JurajSadel merged commit f835fb8 into esp-rs:main May 10, 2024
22 checks passed
@dobairoland dobairoland deleted the feat/c6h2_get_security_info branch May 15, 2024 10:22
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.

2 participants