toit icon indicating copy to clipboard operation
toit copied to clipboard

Add support for ESP32-S3

Open floitsch opened this issue 3 years ago • 7 comments

floitsch avatar Dec 01 '21 11:12 floitsch

I have a few questions as follows:

  • To add the support for ESP32-S3, some toolchain changes for sure.
  • How about the Toit-fork of esp-idf? Perhaps some updates there are required too?
  • How to approach the USB stack for esp32-s3 both in Toit and esp-idf?

un01s avatar Jan 28 '22 02:01 un01s

@erikcorry do you have some information?

floitsch avatar Jan 31 '22 14:01 floitsch

Start to build esp-idf examples with its built-in tinyUSB and load it to esp32s3 dev board. Will update as it goes.

un01s avatar Feb 02 '22 19:02 un01s

I merged a CL that removed Xtensa-specific things from cmpctmalloc. I hope it now compiles on RISCV.

erikcorry avatar Feb 03 '22 09:02 erikcorry

Hi @un01s! We've upgraded to ESP-IDF v4.4 which may (or may not) make this easier to make progress on.

kasperl avatar Aug 20 '22 06:08 kasperl

@erikcorry But ESP32-S3 has no RISC Processor or? The RISC is ESP32-C3 (Single Core)

https://en.wikipedia.org/wiki/ESP32#ESP32-C3 https://en.wikipedia.org/wiki/ESP32#ESP32-S3

nivoc avatar Sep 04 '22 20:09 nivoc

@nivoc: you are correct.

The biggest problem with the S3 is that Espressif only supports it with CMake. However, Toit still uses the old (deprecated) make approach.

The code should mostly work (except that some Pin constants would likely need to be adapted). There is one user of Toit who runs successfully on the S3 (with a few hacks to get the build system working).

floitsch avatar Sep 16 '22 21:09 floitsch

S3 support has landed :)

kasperl avatar Nov 23 '22 07:11 kasperl