Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By old_nicolas
#62526 Work on project with module WROOM-02 (ESP8266) that is SPI slave (using HSPI, and spi_interface.h functions from non_OS SDK 2.0.0).
I write some simple code to read data from SPI master (using interrupt) and send them back in next transaction. I got base code from SDK example.
Short run this test work perfect. But continuous runs have problem:
device reboot in random time, but at fixed address (which is SPIIntClear from spi_interface.c).
I change everything: speed of SPI, delay between packets sends from master to slave - nothing work, reboot come at random time, from 10 sec to 1 min from start.
Last, I just erase all my code from spi interrupt, just going in and out (but code for service interrupts of course).
Can you help me with this problem?