Open mriksman opened 3 hours ago
I tried uncommenting a piece of code in my other program https://github.com/mriksman/esp32_homekit_light_switch. It too fails.
Line 625
homekit_service_t *acc_service = homekit_service_by_type(light->service->accessory, HOMEKIT_SERVICE_ACCESSORY_INFORMATION);
homekit_characteristic_t *acc_service_manufacture = homekit_service_characteristic_by_type(acc_service, HOMEKIT_CHARACTERISTIC_MANUFACTURER);
ESP_LOGE(TAG, "Button Press ***** Manufacturer NAME char %s", acc_service_manufacture->value.string_value );
Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled.
Core 0 register dump:
MEPC : 0x420104b4 RA : 0x4200adba SP : 0x3fca3580 GP : 0x3fc94400
--- 0x420104b4: homekit_service_by_type at /home/mriksman/Projects/esp32_homekit_light_switch_v5/components/homekit/src/server.c:594
0x4200adba: main_event_handler at /home/mriksman/Projects/esp32_homekit_light_switch_v5/main/main.c:626
TP : 0x3fca3810 T0 : 0x000a6d30 T1 : 0x00000065 T2 : 0x5b1b4555
S0/FP : 0x3fca3ac0 S1 : 0x3fca2338 A0 : 0x00000000 A1 : 0x3c0f5540
A2 : 0xfc000000 A3 : 0x00000020 A4 : 0x00000020 A5 : 0x3fcb3598
A6 : 0x4200aa5e A7 : 0x00000076 S2 : 0x3c0f5540 S3 : 0x00000025
--- 0x4200aa5e: main_event_handler at /home/mriksman/Projects/esp32_homekit_light_switch_v5/main/main.c:521
S4 : 0xffffffff S5 : 0x00000000 S6 : 0xffffffff S7 : 0x3fcb0784
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x0000000a T4 : 0x00000000 T5 : 0x00000000 T6 : 0x00000000
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000005 MTVAL : 0x0000000c
--- 0x40380001: _vector_table at /home/mriksman/esp/v5.3.1/esp-idf/components/riscv/vectors_intc.S:54
Another issue I am having after the update. The code used to work.
When I change the value (brightness) on Home App, the callback function is called
It then panics at
homekit_service_t *light_service = homekit_service_by_type(_ch->service->accessory, HOMEKIT_SERVICE_LIGHTBULB);
My code is here https://github.com/mriksman/esp32_homekit_animations