ESP32-C6FH4 SPI pins selection
Posted: Tue Oct 03, 2023 2:38 pm
Hi everyone!
I am developing ESP32-C6FH4 based board for my project in university.
I have external inertial measurement unit (ICM-20948) which can use SPI for communication
There are a couple of pins left available, (SDIO_DATA0-3, SDIO_CLK, SDIO_CMD, MTMS, MTDI, MTCK, MTDO)
I am wondering which of them can I use in a way that it doesn't influence important features like WiFi, Bluetooth, internal flash, etc...?
In technical reference manual it is said that MTMS, MTDI, MTCK, MTDO are strapping pins and used for JTAG purposes, so I can't use them?
And all SDIO pins are used for SDIO Card Slave Driver, so I can't use them too?
In case I am wrong, which configurations can be used (may be both?)?
CONFIGURATION 1:
MTMS - CS
MTDI - MISO
MTCK - SCLK
MTDO - MOSI
CONFIGURATION 2:
SDIO_CLK - SCLK
SDIO_CMD - MOSI
SDIO_DAT0 - MISO
SDIO_DAT3 - CS
And do I need to pullup SDIO_DAT1-2 (in case configuration 2 is used), or I can leave them floating?
Thanks in advance!
I am developing ESP32-C6FH4 based board for my project in university.
I have external inertial measurement unit (ICM-20948) which can use SPI for communication
There are a couple of pins left available, (SDIO_DATA0-3, SDIO_CLK, SDIO_CMD, MTMS, MTDI, MTCK, MTDO)
I am wondering which of them can I use in a way that it doesn't influence important features like WiFi, Bluetooth, internal flash, etc...?
In technical reference manual it is said that MTMS, MTDI, MTCK, MTDO are strapping pins and used for JTAG purposes, so I can't use them?
And all SDIO pins are used for SDIO Card Slave Driver, so I can't use them too?
In case I am wrong, which configurations can be used (may be both?)?
CONFIGURATION 1:
MTMS - CS
MTDI - MISO
MTCK - SCLK
MTDO - MOSI
CONFIGURATION 2:
SDIO_CLK - SCLK
SDIO_CMD - MOSI
SDIO_DAT0 - MISO
SDIO_DAT3 - CS
And do I need to pullup SDIO_DAT1-2 (in case configuration 2 is used), or I can leave them floating?
Thanks in advance!