SPI Slave - Missing data during the first few seconds after initialization
Posted: Mon Dec 02, 2019 11:06 am
Hi all!
I've setup a program which reads incoming data over the SPI Slave Interface and saves all the received data to a file on a connected SD card once the buffer which is being written to is full. The received data is in the form of an incrementing counter.
The problem which I'm observing is that some data being transmitted over SPI from the host is being lost during the first 34 seconds of the program running. After those 34 seconds have elapsed, I can find no missing data in the data saved in the SD card.
I can't make sense of why this is happening. The SPI Slave task is the only task running on core 0, while the task responsible for handling the SD card is running on core 1.
Are there any background functions which are running on core 0 in those 34 seconds after the ESP32 is initialized?
I've setup a program which reads incoming data over the SPI Slave Interface and saves all the received data to a file on a connected SD card once the buffer which is being written to is full. The received data is in the form of an incrementing counter.
The problem which I'm observing is that some data being transmitted over SPI from the host is being lost during the first 34 seconds of the program running. After those 34 seconds have elapsed, I can find no missing data in the data saved in the SD card.
I can't make sense of why this is happening. The SPI Slave task is the only task running on core 0, while the task responsible for handling the SD card is running on core 1.
Are there any background functions which are running on core 0 in those 34 seconds after the ESP32 is initialized?