Page 1 of 1

how to use SPI1_HOST

Posted: Wed Jun 12, 2024 7:38 am
by MasterExploder
Hi all, i'm currently try to use SP1_HOST for ethernet with w5500 in my esp32-s3 mini.

I tried to initialize the SPI1_HOST, but it's not working;
As i can read from the documentation, SPI1 share its pins with SPI0, which is used to fetch the intructions from flash to ram.

The docs say that it cannot be used, but at the same time, i have a whole page on docs that tells me how to do that:
https://docs.espressif.com/projects/esp ... n-spi1-bus

I am trying to find a simple way to deinitialize spi1_host from its original pins and have it initilizable in my app code, or simply a nice way to add a device to spi1_host (there are many controls in the esp-idf code that prevents me to do that).

would you please share with me how to do that? i am currenly working with this example for eth + spi + w5500

https://github.com/espressif/esp-idf/tr ... rnet/basic

Thank you in advance for your response

Re: how to use SPI1_HOST

Posted: Wed Jun 12, 2024 8:38 am
by MicroController
MasterExploder wrote:
Wed Jun 12, 2024 7:38 am
Hi all, i'm currently try to use SP1_HOST for ethernet with w5500 in my esp32-s3 mini.
...
The docs say that it cannot be used, but at the same time, i have a whole page on docs that tells me how to do that:
https://docs.espressif.com/projects/esp ... n-spi1-bus
The docs saying how to do it refer to the ESP32. The ESP32-S3 is different from the ESP32, with its TRM saying
SPI0 and SPI1 controllers are primarily reserved for internal use to communicate with external flash and PSRAM
memory

Re: how to use SPI1_HOST

Posted: Mon Jun 17, 2024 6:56 am
by MasterExploder
OK, perfect.

thank you.