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 support #51

Open
DeeKey opened this issue Mar 25, 2021 · 3 comments
Open

Add ESP32 support #51

DeeKey opened this issue Mar 25, 2021 · 3 comments

Comments

@DeeKey
Copy link
Contributor

DeeKey commented Mar 25, 2021

We need to add support for ESP32 based board flashing in order to support Sensor Kit 2.

@timmydan
Copy link

timmydan commented Oct 6, 2021

I had the same problem but got around it by finding and replacing both instances of "chip_id" (lines 496 and 642 in airrohr-flasher.py) with "read_mac" and then recompiling. This is new to me so I might not have understood all the complexities, but it seems that ESP32 doesn't use the command chip_id so read_mac is the closest thing. It ran fine after I made that change. I haven't yet connected it up to the other hardware, so consider this an answer-in-progress.

@pjgueno
Copy link
Member

pjgueno commented Oct 7, 2021

It is in the esptool.py. We should write a conditional statement or use this function:
def chip_id(esp, args): try: chipid = esp.chip_id() print('Chip ID: 0x%08x' % chipid) except NotSupportedError: print('Warning: %s has no Chip ID. Reading MAC instead.' % esp.CHIP_NAME) read_mac(esp, args)

@thepapermen
Copy link
Contributor

I've createad a pull request with this fix, hopefully someone can test it on both ESP32 and ESP8266.

#68

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

No branches or pull requests

4 participants