Closed jacek12345 closed 1 year ago
Is it possible to remove a device while inside a cb function called by that device? I struggle with:
Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled. Stack dump detected Core 0 register dump: MEPC : 0x4200e33e RA : 0x4200e2f8 SP : 0x3fcbb8f0 GP : 0x3fc93400 0x4200e33e: esp_rmaker_device_set_params at F:/GitHub/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_param.c:291 0x4200e2f8: esp_rmaker_device_set_params at F:/GitHub/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_param.c:377 TP : 0x3fc7f408 T0 : 0xffffffff T1 : 0x10000000 T2 : 0xffffffff S0/FP : 0x00000001 S1 : 0x3fcbb924 A0 : 0x00000000 A1 : 0x3fcbb458 A2 : 0x00000000 A3 : 0x00000005 A4 : 0x00000006 A5 : 0x0000002b A6 : 0x42002ad2 A7 : 0x0000000a S2 : 0x3fcb45e4 S3 : 0x00000005 0x42002ad2: console_write at F:/GitHub/esp-idf_4_4/esp-idf/components/vfs/vfs_console.c:71 S4 : 0x3fcbfb18 S5 : 0x3fcbfb08 S6 : 0x00000036 S7 : 0x59565db0 S8 : 0x42025c90 S9 : 0x3fcbfacc S10 : 0x00000000 S11 : 0x00000000 0x42025c90: sec1_decrypt at F:/GitHub/esp-idf_4_4/esp-idf/components/protocomm/src/security/security1.c:485 T3 : 0x00000000 T4 : 0xff000fff T5 : 0xf6ce4731 T6 : 0x292cb3bf MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000005 MTVAL : 0x00000011 0x40380001: _vector_table at ??:? MHARTID : 0x00000000
I moved removing function outside cb function and problem solved.
Is it possible to remove a device while inside a cb function called by that device? I struggle with: