CHERTS / esp8266-devkit

Unofficial Development Kit for Espressif ESP8266
http://www.programs74.ru
GNU General Public License v3.0
261 stars 102 forks source link

HSPI Slave mode example code fails #41

Closed uchobby closed 6 years ago

uchobby commented 7 years ago

Using example code from the SDK to test SPI slave mode with HSPI. The code may appear to work but the transmitted bits from the slave do not match those loaded into the buffer at the slave. This was verified with a logic analyzer.

There seems to be some correlation to what was loaded, as in load a 0x55 into [0] and get 0x54 sent as [0]. The first guess would be polarity and clock edge but again these were both verified with an OScope. I also tried all combinations at the slave and master.

For the SPI master, I used another ESP8266. I have done several projects using SPI with the ESP and other microcontrollers as well.

I have long since given up with the slave SPI code but I will report the bug. I really wish this was something I'm doing wrong but I can not find it so far. If anyone can vouch for the code with strong believe that it really does work, sending the correct bytes I'd be very happy to hear it. I was counting on using the slave SPI and now have to scrap the ESP for some other parts.