Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

CameronCTS
Copy link
Contributor

Add 0x5fd1_406f as the magic value for identifying ESP32-C5. This value matches the value reported by my ESP32-C5. The attached image shows the result of running espflash board-info with the ESP32-C5 connected:

espflash

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.

Thanks!

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.

How did you check the magic number of your device? Using the espflash logs? According to esp-serial-flasher the magic number is 0x1101406F

@CameronCTS
Copy link
Contributor Author

How did you check the magic number of your device? Using the espflash logs?

I ran espflash board-info using espflash 4.0.1 with my ESP32-C5-DevKitC-1 connected via USB and it reported an unknown magic value of 0x5fd1_406f.

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.

Sorry for the late reply! I did investigated a bit more and found out that it has several magic values, see https://github.com/espressif/esptool-js/blob/4d5231289af64659480c1119a0ba476c6cd402ea/src/targets/esp32c5.ts#L52, mind adding the other two?

Thanks!

@CameronCTS CameronCTS force-pushed the bugfix/esp32c5-magic-value branch from c4c3bd5 to b018b2f Compare September 16, 2025 01:58
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.

One last thing, could you add a changelog entry?? Thanks!

@SergioGasquez SergioGasquez added this pull request to the merge queue Sep 18, 2025
Merged via the queue into esp-rs:main with commit e320ae7 Sep 18, 2025
24 of 25 checks passed
@SergioGasquez
Copy link
Member

Thanks for the contribution, since well release 4.1.0 I merged the PR as it is and added the changelog entry in #952

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.

3 participants