I'm working with an ESP8266 in HSPI slave mode connected with an Atmel Atmega 328p in master mode. Communication works fine until I try to share the SPI interface with another device as a slave. Obviously, I have two different chip select (one for esp and one for the other device). Every time I send a message to the other device (with esp's CS set HIGH) the next communications with esp fail.
Has anyone ever faced a similar issue? Is it possible to use esp as a slave with other devices connected?
I'm using the Arduino Core 2.4.0 on the esp with SPISlave library and the classical Arduino SPI library on 328p.
Thanks