espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.78k stars 7.44k forks source link

Quad SPI mode #7063

Open 0x0fe opened 2 years ago

0x0fe commented 2 years ago

Related area

adding QSPI mode to the SPI driver

Hardware specification

ESP32, ESP32C3

Is your feature request related to a problem?

I could not find any implementation of QSPI mode in the ESP32 core. QSPI is useful in various scenarios, flash, ADCs/DACs, fpgas, inter chip communiation, custom interfaces.

Describe the solution you'd like

Being able to select the QSPI mode on a SPI interface, as it has been done here, https://github.com/CutClassH/sea_esp32_qspi but this does not work anymore.

Describe alternatives you've considered

in my case i want to send 3 parallele 8 bit streams, that is, sending 3 separate bistreams on 3 GPIOs synced with the same clock.QSPI seems like the best way to do it at decent speed. An alternative is to bitbang, the last recourse, but bitbanging on ESP32 is not really practical (by experience).

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

Jason2866 commented 2 years ago

The connected flash (where the sketch is flashed) to the ESP32, C3, S2 can use mode qio. Or do you mean something different?

0x0fe commented 2 years ago

no, i mean for the SPI driver of arduino core, the "user side" driver. Currently it does not support QSPI (at least on C3).

0x0fe commented 2 years ago

if you check the initial message i think it was quite clear though, with example linked

VojtechBartoska commented 1 year ago

Related request from the discussion: https://github.com/espressif/arduino-esp32/discussions/8174

Adding this to 3.0.0 milestone to triage this Feature Request.

VojtechBartoska commented 9 months ago

Postponing this to 3.1.0 Milestone, we need to evaluate this again.

0x0fe commented 9 months ago

@VojtechBartoska OK, well noted

kylongmu commented 9 months ago

Postponing this to 3.1.0 Milestone, we need to evaluate this again.

Waiting for the qspi support in arduino too.

xChumimin commented 4 months ago

I need more documentation, examples and support on both qspi and dual io spi