how to use SPI1_HOST

MasterExploder
Posts: 26
Joined: Wed Feb 08, 2023 6:17 pm

how to use SPI1_HOST

Postby MasterExploder » 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.

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

MicroController
Posts: 1552
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: how to use SPI1_HOST

Postby MicroController » Wed Jun 12, 2024 8:38 am

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

MasterExploder
Posts: 26
Joined: Wed Feb 08, 2023 6:17 pm

Re: how to use SPI1_HOST

Postby MasterExploder » Mon Jun 17, 2024 6:56 am

OK, perfect.

thank you.

Who is online

Users browsing this forum: No registered users and 286 guests