I have two boards that are identical, running the same code. Chip is ESP32-S2 with SPI FLASH + PSRAM, micropython 1.18.
One board fails to boot and the other board works ok. On the dodgy board I have replaced both the SPI and PSRAM ic's but it hasn't made a difference.
The backtrace I'm getting seems to suggest something in littlefs. Does anyone have any better insights?
Thanks
Code: Select all
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x4009594c: b2b020c3 f8ec2520 0000f01d
Core 0 register dump:
PC : 0x40095950 PS : 0x00060630 A0 : 0x8008f36b A1 : 0x3ffd7590
A2 : 0x3f79a080 A3 : 0x3f79d04f A4 : 0xffffff30 A5 : 0x3f00938c
A6 : 0x3f7b4044 A7 : 0x3f79a136 A8 : 0x80027420 A9 : 0x3ffd7570
A10 : 0x00000551 A11 : 0x00000006 A12 : 0x3f79d050 A13 : 0x3f79d04c
A14 : 0x3f79d043 A15 : 0x3ffd7620 SAR : 0x00000013 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x3f79d050 LEND : 0x3f79d04c LCOUNT : 0x400262c1
Backtrace:0x4009594d:0x3ffd7590 0x4008f368:0x3ffd7630 0x40095c89:0x3ffd7660 0x40095d9d:0x3ffd7680 0x40027ec1:0x3ffd76a0 0x4008f368:0x3ffd7740 0x40095c89:0x3ffd77a0 0x40095cb2:0x3ffd77c0 0x400a090a:0x3ffd77e0 0x400a0cb1:0x3ffd7870 0x400886e9:0x3ffd7890
Code: Select all
PC: 0x4009593c: mp_call_method_n_kw at /home/patrick/esp/micropython/py/runtime.c line 698
EXCVADDR: 0x00000000
Decoding stack results
0x40095939: mp_call_method_n_kw at /home/patrick/esp/micropython/py/runtime.c line 698
0x4008f368: mp_obj_gen_resume at /home/patrick/esp/micropython/py/objgenerator.c line 224
0x40095c89: mp_iternext_allow_raise at /home/patrick/esp/micropython/py/runtime.c line 1311
0x40095d9d: mp_call_method_n_kw_var at /home/patrick/esp/micropython/py/runtime.c line 730
0x40027ec1: mp_execute_bytecode at /home/patrick/esp/micropython/py/vm.c line 1132
0x4008f368: mp_obj_gen_resume at /home/patrick/esp/micropython/py/objgenerator.c line 224
0x40095c89: mp_iternext_allow_raise at /home/patrick/esp/micropython/py/runtime.c line 1311
0x40095cb2: mp_iternext at /home/patrick/esp/micropython/py/runtime.c line 1325
0x400a090a: lfs2_init at /home/patrick/esp/micropython/lib/littlefs/lfs2.c line 3489
0x400a0cb1: lfs2_dir_getgstate at /home/patrick/esp/micropython/lib/littlefs/lfs2.c line 355
0x400886e9: mp_hal_delay_ms at /home/patrick/esp/micropython/ports/esp32/mphalport.c line 166