I am trying to run two esp-idf examples mb_slave and restful_server together. Both examples separately work without remarks. And they even work together.
I created a task for each of them.
- void app_main(void) {
- ESP_ERROR_CHECK(nvs_flash_init());
- ESP_ERROR_CHECK(esp_netif_init());
- ESP_ERROR_CHECK(esp_event_loop_create_default());
- initialise_mdns();
- netbiosns_init();
- netbiosns_set_name(CONFIG_EXAMPLE_MDNS_HOST_NAME);
- xTaskCreate(Modbus_Task, "Modbus_Task", 4096, NULL, 10, &modbusTaskHandle);
- xTaskCreate(Http_Task, "Http_Task", 4096, NULL, 10, &httpTaskHandle);
- }
Error
- Guru Meditation Error: Core 0 panic'ed (Cache disabled but cached memory region accessed).
- Core 0 register dump:
- PC : 0x400dfb1c PS : 0x00060034 A0 : 0x8008339c A1 : 0x3ffb1b20
- 0x400dfb1c: xMBRTUTimerT35Expired at .../firmware/managed_components/espressif__esp-modbus/freemodbus/modbus/rtu/mbrtu.c:339
- A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x00000000
- A6 : 0x00000001 A7 : 0x00000000 A8 : 0x80083780 A9 : 0x3ffb1b00
- A10 : 0x400dfb1c A11 : 0x00000000 A12 : 0x00060021 A13 : 0x00060023
- 0x400dfb1c: xMBRTUTimerT35Expired at .../firmware/managed_components/espressif__esp-modbus/freemodbus/modbus/rtu/mbrtu.c:339
- A14 : 0x00000003 A15 : 0x0000cdcd SAR : 0x00000004 EXCCAUSE: 0x00000007
- EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
- Backtrace: 0x400dfb19:0x3ffb1b20 0x40083399:0x3ffb1b40 0x400833e0:0x3ffb1b70 0x40083569:0x3ffb1ba0 0x40082cd5:0x3ffb1bc0 0x400846ee:0x3ffaf3a0 0x40085c04:0x3ffaf3c0 0x4008d659:0x3ffaf3e0
- 0x400dfb19: xMBRTUTransmitFSM at .../managed_components/espressif__esp-modbus/freemodbus/modbus/rtu/mbrtu.c:335
- 0x40083399: timer_process_alarm at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_timer/src/esp_timer.c:406
- 0x400833e0: timer_alarm_handler at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_timer/src/esp_timer.c:451
- 0x40083569: timer_alarm_isr at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_timer/src/esp_timer_impl_lac.c:186
- 0x40082cd5: _xt_lowint1 at C:/Espressif/frameworks/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/xtensa_vectors.S:1118
- 0x400846ee: spi_flash_op_block_func at C:/Espressif/frameworks/esp-idf-v5.0.1/components/spi_flash/cache_utils.c:133
- 0x40085c04: ipc_task at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_system/esp_ipc.c:87
- 0x4008d659: vPortTaskWrapper at C:/Espressif/frameworks/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:154