esp-idf/examples/peripherals/spi_master/hd_eeprom
Djordje Nedic facab8c5a7 tools: Increase the minimal supported CMake version to 3.16
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2022-06-01 06:35:02 +00:00
..
components/eeprom G0: target component (components/esp32*) doesn't depend on driver anymore 2022-03-02 04:21:00 +00:00
main Build & config: Remove leftover files from the unsupported "make" build system 2021-11-11 15:32:36 +01:00
CMakeLists.txt tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
README.md spi: support spi example on s3 2021-07-30 10:14:16 +08:00

SPI master half duplex EEPROM example

This code demonstrates how to use the SPI master half duplex mode to read/write a AT93C46D EEPROM (8-bit mode). There is also an Kconfig option EXAMPLE_USE_SPI1_PINS allowing use the SPI1 (bus with code Flash connected on official modules).

Connections

For different chip and host used, the connections may be different.

ESP32 ESP32 ESP32S2 ESP32C3 ESP32S3
Host SPI1 HSPI FSPI SPI2 SPI2
VCC 3.3V 3.3V 3.3V 3.3V 3.3V
GND GND GND GND GND GND
DO 7 18 37 2 13
DI 8 23 35 7 11
SK 6 19 36 6 12
CS 13 13 34 10 10
ORG GND GND GND GND GND

Notes

If you meet timeout issues, please check your connections.