rossumur / esp_8_bit

Atari 8 bit computers, NES and SMS game consoles on your TV with nothing more than a ESP32 and a sense of nostalgia
1.05k stars 151 forks source link

Running this on esp32-s2? #21

Open ghost opened 4 years ago

ghost commented 4 years ago

I'd be interested to know if this would run on an esp32-s2.

If any of the project contributors are interested in trying, I'd be happy to pay for a couple of esp32-s2 boards for you to use.

I know it's not much money to spend but it's not really fair to ask without volunteering the hardware too.

If any of the project contributors are interested, let me know and we'll work out how I can pay for the purchase.

The esp32-s2 has pros and cons for this versus the esp32.

PROS:

CONS:

Reference: https://twitter.com/i_grr/status/1245361553035198464 https://twitter.com/i_grr/status/1245429953136594945

RoCorbera commented 4 years ago

Does S2 support USB Host interface and protocol? I don't think so. As far as I have read, it only supports Client USB...

ghost commented 4 years ago

@RoCorbera I'm pretty sure they are working on host mode.

See thread:

https://www.esp32.com/viewtopic.php?t=16147

RoCorbera commented 4 years ago

We can follow the specs at https://esp32.com/viewtopic.php?f=10&t=14532 So far: USB Device — Supported USB Host — Not supported (IDF-530)

and based on the status of this issue (https://github.com/espressif/esp-idf/issues/5454): Ivan Grokhotkov (from Epressif/Shangai) answered to Chegewara (support from Espressif): "Hi @chegewara, unfortunately we don't have timeline for the USB Host feature, yet." on Jun, 15th.

Thus I have not much hope for it...

chegewara commented 3 years ago

Support for USB host will be added for sure on S2, especially that S3 is on its way which also support native USB. The problem is it is in very early stage in tinyUSB library.

RoCorbera commented 3 years ago

Thanks for the update, @chegewara ! Would it work for ESP32 WROOM as well?

For future reference of others, here are some links about tinyUSB and ESP32: https://github.com/hathach/tinyusb https://www.esp32.com/viewtopic.php?t=15908 https://github.com/chegewara/esp-idf/tree/master/examples/peripherals/usb https://github.com/chegewara/esp32s2-tinyusb-arduino-as-component

chegewara commented 3 years ago

Would it work for ESP32 WROOM as well?

No, esp32 does not support native USB.

btw, there is missing 1 library from my repo ;) https://github.com/chegewara/EspTinyUSB