I'm trying to run ESP8266 as spi slave device and send data to it. I use HSPI. I used source files, which I found in SPI_slave example in Unofficial Development Kit for Espressif ESP8266 in viewtopic.php?f=9&t=820 (I also tested spi drivers from sdk but also with no success). After I run spi_init() function I send command, address and data from host as it is described in 8I-ESP8266__SPI-WiFi_Passthrough_1-Interrupt_Mode__EN_v0.1.pdf or 8J-ESP8266__SPIWiFi_Passthrough_2-Interrupt_Mode__EN_v1.0.pdf (for example when I want to write to module I send: command 0x02 + address 0x00 + 32 bytes of data). After I send 34 bytes I check content of SPI_W0-SPI_W7 registers, but there is still the same data as before transmission. I checked waveforms on oscilloscope, signals look properly I can't find where is problem.
I am also confused becouse in 8N-ESP8266__SPI_Reference__EN_v1.0.pdf there is different description of transmission
and settings of SPI. Clock is setted to be high in the idle state on the waveform, and packet to write data is 0x04 + 1 byte of data (to read data from slave command is 0x06 instead 0x03). Which is properly?
There is also few strange things. There is possibility to read SPI_FLASH_STATUS register using command 0x04 or 0x05 described in 8I-ESP8266__SPI-WiFi_Passthrough_1-Interrupt_Mode__EN_v0.1.pdf, but I can't find what is address of this register, it isn't defined in spi_register.h.
What is properly communication format and where is newest correct driver and documents described it?
I would be very grateful for any help.