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 ESP32-S3 DevKitC-1-N32R8 #5999
Conversation
For what it’s worth, I tried the latest ESP IDF version. When running |
I had tried to flash N8R8 onto it before and it didn't work. Maybe some param I overlooked is different. But it will flash as a 16MB, so it's usable for now :-) |
Any idea what next steps need to be done to get this working? @anecdata I also tried flashing the CircuitPython firmware for N8R8 on my N32R8 and got the same results, able to get to the REPL, but the CIRCUITPY drive doesn't show up. |
@kylefmohr All indications are that we are waiting for Espressif to complete the development discussed in the issue kmatch98 linked above. |
Possibly some progress here: espressif/esp-idf#7688 |
Looks like there may still be some 16MB limitations. Do we wait until we update esp-idf, or try to incorporate Espressif's changes into CircuitPython sooner when it's ready enough? |
More progress here: espressif/esp-idf@04959af I did not verify whether this was backported to v4.4. |
There are indications 32MB+ support is merged into 4.4 (though not sure what snapshot we use). Taking out of draft to see what happens. This is only a test. |
We're using: https://github.com/adafruit/esp-idf/tree/circuitpython8 |
@anecdata Do we have 32MB support now an updated version of the IDF? Or will we need IDF 5? |
I'm not really sure. If this is still our branch: igrr says here that support is in 4.4.2. espressif/esp-idf merged / closed PR 7688 (link above) seems to be where the support is added. Issue 7670 is closed (link above), but oddly issue 8365 is still open (link above). |
@anecdata The branch is now https://github.com/adafruit/esp-idf/tree/release/v4.4-circuitpython |
I see the "Update version to 4.4.2" comment there, so in theory it should work. I'm not set up to build and test for a while. Also very baffled about the conflicts... I thought I fixed it at one point (basically copying the then-new patterns), but there are a lot more diffs now that I don't grok at all. If someone else wants to jump in sooner, feel free. |
Thanks @microdev1! |
Does it work now? |
I may be flashing it wrong this time around, tried a few ways, but I get a boot loop:
addendum: I'm able to flash an N8R8 with 8.0.0-beta.4, so I think my config is ok. But I used to be able to flash an N8R8 |
@anecdata I just pushed a commit reverting flash mode back to |
Still boot looping:
The UART shows up correctly as |
Does the |
The N8R8 addendum: the 7.3.3 N8R8 |
This might need to pull in espressif/esp-idf#7688 to our esp-idf fork. |
We now have those commits. This needs a re-test. |
I just ordered an ESP32-S3-DevKitC-1-N32R8 and should get it Friday or Saturday. |
Erased flash and loaded the The USB connector shows up as
The UART connector shows up as N8R8 7.3.3 works as before (REPL, NO CIRCUITPY), N8R8 8.0.0-beta.6 also boot loops. |
I got this branch and merged in the latest circuitpython
and it boot loops. |
I'm going to push this to 8.x.x unless we figure something out. It is not urgent for 8.0.0. |
Switched the flash mode to # Note: we use esptool.py to flash bootloader in
# dio mode for QIO/QOUT, bootloader then upgrades
# itself to quad mode during initialisation
config ESPTOOLPY_FLASHMODE
string
default "dio" if ESPTOOLPY_FLASHMODE_QIO
default "dio" if ESPTOOLPY_FLASHMODE_QOUT
default "dio" if ESPTOOLPY_FLASHMODE_DIO
default "dout" if ESPTOOLPY_FLASHMODE_DOUT
# The 1st and 2nd bootloader doesn't support opi mode,
# using fastrd instead. For now the ESPTOOL doesn't support
# fasted (see ESPTOOL-274), using dout instead. In ROM the flash mode
# information get from efuse, so don't care this dout choice.
default "dout" if ESPTOOLPY_FLASHMODE_OPI |
🎉REPL and CIRCUITPY 🎉 Adafruit CircuitPython 8.0.0-beta.6-63-gb8fa2c641-dirty on 2023-01-28; ESP32-S3-DevKitC-1-N32R8 with ESP32S3
>>> import storage
>>> storage.getmount("/").label
'CIRCUITPY'
>>>
>>> import os
>>> os.statvfs("/")
(2048, 2048, 15176, 15172, 15172, 0, 0, 0, 0, 255)
>>>
>>> import gc
>>> gc.mem_free()
8195120
>>>
>>> import espidf
>>> espidf.heap_caps_get_total_size()
305124 No special Thanks, @microdev1 !! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @microdev1, and thanks @anecdata for the final test!
Draft for now. I can't get it to build.
This is the board in the shop. It uses an ESP32-S3-WROOM-2 module. 32MB flash & 8MB PSRAM:
https://www.adafruit.com/product/5364
edit: "it's complicated"?
espressif/esp-idf#7670