Closed nopnop2002 closed 1 year ago
Hi @nopnop2002 Thanks for reporting.
Yes, the enum spi_host_device_t
should reflect the SOC_SPI_PERIPH_NUM
macro, we will fix it ASAP.
@suda-morris
The ESP32C2 and ESP32C3 documents have the following description.
It gives a false impression that SPI3 is available.
This description is misleading.
This was reported 1 year ago: https://github.com/espressif/esp-idf/issues/8144
Answers checklist.
General issue report
ESP32C2/C3 has hardware limitations compared to ESP32.
The number of hardware can be checked with the following constants.
But the SPI_HOST_MAX of the ESP32C2/C3 is incorrect.
Version of ESP-IDF
Test code
ESP32
SPI_HOST_MAX=3 I2C_NUM_MAX=2 UART_NUM_MAX=3
ESP32C2
SPI_HOST_MAX=3 ---> incorrect I2C_NUM_MAX=1 UART_NUM_MAX=2
ESP32C3
SPI_HOST_MAX=3 ---> incorrect I2C_NUM_MAX=1 UART_NUM_MAX=2