I was also working on a project similar to this and luckily stumbled into the forums on time finding exactly what I needed: Espressif skainet demo - Data cache error when trying to run with arduinoesp32
and I successfully had my project going using the help of Max’s solution. I then needed to clear a previous flash from another program (On Arduino IDE) and proceeded to do: esptool.py --chip esp32s3 --port (my port) erase_flash.
However, when I went back to flash the project onto my device it seemed to stop working and I was getting this:
␛[0;32mI (757) spiram: Adding pool of 8192K of external SPI memory to heap allocator␛[0m
␛[0;32mI (765) spi_flash: detected chip: boya␛[0m
␛[0;32mI (769) spi_flash: flash io: qio␛[0m
␛[0;32mI (774) sleep: Configure to isolate all GPIO pins in sleep state␛[0m
␛[0;32mI (780) sleep: Enable automatic switching of GPIO sleep configuration␛[0m
␛[0;32mI (787) cpu_start: Starting scheduler on PRO CPU.␛[0m
␛[0;32mI (0) cpu_start: Starting scheduler on APP CPU.␛[0m
␛[0;32mI (803) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations␛[0m
[ 807][E][esp32-hal-misc.c:264] initArduino(): Failed to initialize NVS! Error: 261
␛[0;32mI (830) MODEL_LOADER: The storage free size is 23424 KB␛[0m
␛[0;32mI (831) MODEL_LOADER: The partition size is 5168 KB␛[0m
␛[0;32mI (832) MODEL_LOADER: Successfully map model partition␛[0m
␛[0;32mI (837) I2S: DMA Malloc info, datalen=blocksize=640, dma_buf_count=6␛[0m
␛[0;32mI (844) AFE_SR: afe interface for speech recognition
␛[0m
␛[0;32mI (850) AFE_SR: AFE version: SR_V220727
␛[0m
␛[0;32mI (854) AFE_SR: Initial auido front-end, total channel: 2, mic num: 1, ref num: 1
␛[0m
␛[0;32mI (863) AFE_SR: aec_init: 1, se_init: 1, vad_init: 1
␛[0m
␛[0;32mI (868) AFE_SR: wakenet_init: 1
␛[0m
␛[0;31mE (916) AFE_SR: ERROR: Please select wake words!
␛[0m
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.
I attempted and seemed to have solved the NVS error by adding a NVS partition but the AFE still seems to be failing which is frustrating as I hadn’t changed any code from when it was working till after I erased the flash and it wasn’t working.
I also tried using another unopened, identical ESP32-S3 that I had on hand, but I encountered the same error.
I am new to PlatformIO and I’m not sure what I might have done, but any assistance that can be provided would be greatly appreciated.
(Reposted this as the other post had a solution to another problem already)