tttapa / ESP8266

Documentation and help with the ESP8266 chip/boards/modules
GNU General Public License v3.0
645 stars 283 forks source link

Use both SPI on ESP8266 #71

Open Alpaswiss opened 4 years ago

Alpaswiss commented 4 years ago

Hi

I want to use a ESP to a W5500 with SPI, but the ESP is also Slave in another SPI on the Board. How can i do this.

The target is, the ESP gets data over SPI from another controller (some STM32), with this data, the ESP creates a Website, where a user can see log data and so on. Also the user can modify settings of the other controller (the STM32). For this, the ESP communicates with SPI to the STM32, the ESP is Slave in this SPI, sharing it with many other chips. The ESP should get a Ethernet Interface, with a W5500 chip, wich is also connectet over SPI, but for this Connection, the ESP is the Master.

There are two ways im my eyes.

1) Connect to the STM32 with HSPI (GPIO 12 to 15) and connect the W5500 to the same SPI as the Flash (GPIO 6 to 8 and GPIO 0 or 1 as chip select) In my eyes, this should work, because both chips (Flash and W5500) are Slaves and have a own CS

2) One connection with the HSPI and create another SPI in Software for the other connection.

I have never used the ESP8266 until now, so i have no idea if this would work.

Please give me some advice, would 1. be possible? Because, i would be happy if i have some I/O to control the W5500. Anf i think its the better solution, if it works.

Thanks a lot

tttapa commented 4 years ago

This is an issue tracker for the Beginner's Guide to the ESP8266.
Please use the appropriate online fora if you have questions about your specific project.

I haven't used the ESP8266 in quite some time, so I'm afraid I can't help you.