Skip to content

Update espressif port #5615

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

Merged
merged 5 commits into from
Dec 3, 2021
Merged

Update espressif port #5615

merged 5 commits into from
Dec 3, 2021

Conversation

microdev1
Copy link
Collaborator

Changes in this PR:

  • Update esp-idf to v4.4.
  • Add esp32s3 support.
  • Add analogio on esp32c3.
  • Disable rgbmatrix on all espressif soc.
  • Formatting changes in espressif makefile.

Thanks @tannewt and @UnexpectedMaker for the initial heavy-lifting.

microdev1 and others added 2 commits November 24, 2021 18:01
- update esp-idf to v4.4
- add esp32s3 support
- add analogio on esp32c3
- disable rgbmatrix on all espressif soc

Co-authored-by: Scott Shawcroft <scott@adafruit.com>
Co-authored-by: Seon Rozenblum <seon@unexpectedmaker.com>
@microdev1 microdev1 added enhancement refactoring espressif applies to multiple Espressif chips labels Nov 24, 2021
@microdev1 microdev1 linked an issue Nov 24, 2021 that may be closed by this pull request
@jepler
Copy link

jepler commented Nov 24, 2021

What's up with disabling rgbmatrix, can you explain why it was necessary?

@microdev1
Copy link
Collaborator Author

What's up with disabling rgbmatrix, can you explain why it was necessary?

Nothing major, protomatter needs to be updated, timer_index_t struct has changed in the newer idf.
I have got a PR out adafruit/Adafruit_Protomatter#41 but don't have the hardware to test it.

@tannewt
Copy link
Member

tannewt commented Nov 24, 2021

@jepler Want to update protomatter next week for this?

@tannewt
Copy link
Member

tannewt commented Nov 24, 2021

Thank you! The changes all look good to me. We just need to update protomatter so that we can leave rgbmatrix enabled.

@jepler
Copy link

jepler commented Nov 24, 2021

Yeah if there's code that builds I can at least test it on esp32-s2 and get it merged in. It looks like there's not a variant which works with both old and new esp-idf so doing it in steps with rgbmatrix briefly disabled is probably not a bad way to handle it. Please open an issue here so that I have a reminder of the task.

@jepler
Copy link

jepler commented Nov 25, 2021

What BOARD= can I build with to test esp32-s3 support in this PR?

@microdev1
Copy link
Collaborator Author

What BOARD= can I build with to test esp32-s3 support in this PR?

You can take any esp32s2 board and replace s2/S2 with s3/S3.

@ladyada
Copy link
Member

ladyada commented Nov 26, 2021

@microdev1 we tried to build but got this

�ESP-ROM:esp32s3-20210327f
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40048836
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff

maybe we did something wrong, do you mind also commiting a board we could try against like one of the ESP S3 eval boards? they all have 4MB flash and one has 2 MB PSRAM. it would help us with testing :)

@jepler
Copy link

jepler commented Nov 26, 2021

With the latest changes I was able to get the https://www.adafruit.com/product/5310 working, including spiram. Thank you.

@microdev1
Copy link
Collaborator Author

I believe following change was lost when I rebased my branch and merged main before making the PR.
The BOOTLOADER_OFFSET for esp32, esp32s2 is 0x1000 and esp32c3, esp32s3 is 0x0, I have corrected this now. :-)

@jepler
Copy link

jepler commented Nov 26, 2021

I've made an extremely lightly tested board definition for the psram variant of the esp32s3-devkitc at https://github.com/adafruit/circuitpython/compare/main...jepler:esp32s3-devkitc?expand=1 if you want to make that a part of this PR that would be great. If not I can make a fresh PR after this one is merged. I tested that it comes up, that os.uname() seems right, and that the neopixel works.

@microdev1
Copy link
Collaborator Author

Let's get this merged, the board can be added in a separate PR.

@tannewt
Copy link
Member

tannewt commented Nov 29, 2021

We're going to wait just a little bit (a day or two) so that we can branch 7.1.0 before merging this into main. We'll want to add a 7.2.0-alpha.0 tag for it then too.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you for doing this update!

@dhalbert dhalbert merged commit f594ab2 into adafruit:main Dec 3, 2021
@alexwhittemore
Copy link

alexwhittemore commented Dec 3, 2021

Damnit now I need to go get an ESP32-S3 board before the rush! Great Hanukkah present, thanks y'all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement espressif applies to multiple Espressif chips refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ESP32-S3 support
6 participants