mocleiri / tensorflow-micropython-examples

A custom micropython firmware integrating tensorflow lite for microcontrollers and ulab to implement the tensorflow micro examples.
MIT License
170 stars 79 forks source link

micro_speech example works twice then crashes - ESP-WROOM-32 v1 #110

Open CyrusDS opened 1 year ago

CyrusDS commented 1 year ago

I was able to upload the esp32 firmware binary file and get the firmware working in thonny with the board, then I tested the hello_world example successfully and moved on to the micro_speech. I tested the INMP441 with the i2s_dump.py first to ensure that the mic was working - and the output wav file was correct.

I tried testing the micro_speech example next, which works but after two runs it seems to reset, I've linked a screenshot below. I have tried some of the older firmware versions as well with the same exact issue.

ESP32WroomMicroSpeechfailure Any ideas what could be causing this? It seems to function, as it does recognize my yes vs no before restart.

CyrusDS commented 1 year ago

Also including the errors as text below. interpreter_make_new: model size = 18712, tensor area = 8208 Starting found - no at 0 seconds -> 1

Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.

Core 1 register dump: PC : 0x00000000 PS : 0x00060d30 A0 : 0x800e2e79 A1 : 0x3ffce0c0
A2 : 0x3ffe3ecc A3 : 0x3ffcd6c0 A4 : 0x00000003 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x3ffda234 A8 : 0x800e23ad A9 : 0x3ffce0a0
A10 : 0x3ffe3e6c A11 : 0x3ffda234 A12 : 0x00000000 A13 : 0x3ffd92e4
A14 : 0x00000000 A15 : 0x0000001c SAR : 0x0000000b EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x400ffb34 LEND : 0x400ffb53 LCOUNT : 0x00000000

Backtrace:0xfffffffd:0x3ffce0c0 0x400e2e76:0x3ffce0f0 0x400d2f3a:0x3ffce110 0x400d2d5d:0x3ffce130 0x4014d145:0x3ffce150 0x401565f1:0x3ffce170 0x40084629:0x3ffce190 0x4014d252:0x3ffce230 0x401565ad:0x3ffce2a0 0x40084596:0x3ffce2c0 0x4014d252:0x3ffce360 0x40156619:0x3ffce390 0x40196eb3:0x3ffce3b0 0x401970dd:0x3ffce440 0x4016fd52:0x3ffce490

ELF file SHA256: 393445c5a3a3b1f3

Rebooting... ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:4604 ho 0 tail 12 room 4 load:0x40078000,len:13396 load:0x40080400,len:3312 entry 0x4008061c interpreter_make_new: model size = 18712, tensor area = 8208 Starting found - no at 0 seconds -> 1

found - yes at 0 seconds -> 2

Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.

Core 1 register dump: PC : 0x00000001 PS : 0x00060a30 A0 : 0x800e2e79 A1 : 0x3ffce0e0
A2 : 0x3ffdff2c A3 : 0x3ffcd6e0 A4 : 0x00000003 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x3ffda394 A8 : 0x800e23ad A9 : 0x3ffce0c0
A10 : 0x3ffdfecc A11 : 0x3ffda394 A12 : 0x00000001 A13 : 0x3ffd9444
A14 : 0x00000000 A15 : 0x00000012 SAR : 0x0000000b EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x400ffb34 LEND : 0x400ffb53 LCOUNT : 0x00000000

Backtrace:0xfffffffe:0x3ffce0e0 0x400e2e76:0x3ffce110 0x400d2f3a:0x3ffce130 0x400d2d5d:0x3ffce150 0x4014d145:0x3ffce170 0x401565f1:0x3ffce190 0x40084629:0x3ffce1b0 0x4014d252:0x3ffce250 0x401565ad:0x3ffce2c0 0x40084596:0x3ffce2e0 0x4014d252:0x3ffce380 0x40156619:0x3ffce3b0 0x40196eb3:0x3ffce3d0 0x401972e1:0x3ffce460 0x4016fd2a:0x3ffce490