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

Espressif: Add Esp32s3 devkitc board definitions #5655

Merged
merged 3 commits into from Dec 6, 2021

Conversation

jepler
Copy link
Member

@jepler jepler commented Dec 3, 2021

These both mount CIRCUITPY & blink the RGB LED. That's about all the testing I did.

ladyada
ladyada previously approved these changes Dec 3, 2021
@ladyada
Copy link
Member

ladyada commented Dec 3, 2021

thanks for making both versions!

@anecdata
Copy link
Member

anecdata commented Dec 4, 2021

Submitted (but not yet merged) PR to Espressif to resolve the duplicate PID check: can use 0x7005 for the nopsram variant...

Existing PIDs, changed name to distinguish psram vs. nopsram:

0x7002 | ESP32-S3-DevKitC-1-N8R2 - UF2 Bootloader
0x7003 | ESP32-S3-DevKitC-1-N8R2 - CircuitPython

New PIDs:

0x7004 | ESP32-S3-DevKitC-1-N8 - UF2 Bootloader
0x7005 | ESP32-S3-DevKitC-1-N8 - CircuitPython

(I tried to do a patch PR to this file, but got a 404)

Edit: Is it customary to use Espressif-issued PIDs with Adafruit VID on Espressif boards? I checked a few and that's the way it is in this PR, and for Saola and Kaluga, but not for ESP32-S2-HMI-DevKit-1. 3rd-party boards tend to use Espressif VID and PID. Just seems odd not to use Espressif VID with the Espressif PID? Espressif VID=0x303A

@willproctor
Copy link

Adafruit CircuitPython 7.2.0-alpha.0-2-g23e0a25aa on 2021-12-03; ESP32-S3-DevKitC-1-nopsram with ESP32S3

From the REPL importing the wifi module causes a reset

@willproctor
Copy link

Adafruit CircuitPython 7.2.0-alpha.0-2-g23e0a25aa on 2021-12-03; ESP32-S3-DevKitC-1-nopsram with ESP32S3

From the REPL importing the wifi module causes a reset

This is tracked under #5662

@jepler
Copy link
Member Author

jepler commented Dec 4, 2021

No, I erred in using the wrong VID, it should be the Espressif one if we're using a PID from Espressif. (And we should use a PID from Espressif for all new devkits they make)

@anecdata
Copy link
Member

anecdata commented Dec 5, 2021

Is it desirable to go back and change the Adafruit VIDs to Espressif VIDs in prior Espressif boards (any harm in changing them after the fact)? If so, I can track them down and do a PR.

@jepler
Copy link
Member Author

jepler commented Dec 5, 2021

I don't think so but maybe @dhalbert has an opinion about changing to an Espressif VID/PID for older espressif devkit.

@anecdata
Copy link
Member

anecdata commented Dec 5, 2021

Saola and Kaluga are self-consistent: Adafruit VID and PID, so probably no strong reason for change.

I did notice checking just now though that the Kaluga 1 and Kaluga 1.3 have the same USB_PID = 0x80C8
and USB_PRODUCT = "Kaluga 1", though they have different firmware. I don't think this would pass the current build check.

Another possible quirk: there are two version of no-PSRAM ESP32-S3 in the store:
• PRODUCT ID: 5311 ESP32-S3-DevKitM-1-N8 - ESP32-S3-MINI-1 Dev Board - 8 MB Flash
• PRODUCT ID: 5312 ESP32-S3-DevKitC-1-N8 - ESP32-S3-WROOM-1 Dev Board - 8MB Flash
Presumably these run the same firmware, it's just a difference of module size?

I think as Espressif releases more variations, this will become a common question of how to do the PID, USB_PRODUCT, and whether to just create a board alias like PyPortal & Titano Pynt, or whether to create a new board.

I also have newer ESP32-S2 Espressif dev board that's logically identical to Saola WROVER afaict and runs Saola WROVER firmware (4MB flash, 2MB RAM - they're just physically different with a second USB connector, and one pin thinner), but there are other variations of flash and RAM.

Are Adafruit PIDs public somewhere?

@jepler
Copy link
Member Author

jepler commented Dec 5, 2021

I think that right now the Adafruit PIDs are only documented internally.

I used a duplicate PID for the newer Kaluga board in this PR, perhaps it did not receive sufficient review: #4870

@dhalbert
Copy link
Collaborator

dhalbert commented Dec 5, 2021

I don't think so but maybe @dhalbert has an opinion about changing to an Espressif VID/PID for older espressif devkit.

I don't think it's much of an issue. Mu no longer depends on VID/PIDs to identify boards. The new VID/PID will cause Windows 10 to install a new device, but that's fine.

@jepler jepler requested a review from ladyada December 6, 2021 18:30
@jepler jepler merged commit 40d947c into adafruit:main Dec 6, 2021
@jepler jepler deleted the esp32s3-devkitc branch December 6, 2021 18:47
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.

None yet

5 participants