Guru Meditation Error (Modbus + httpd)

kossnikita
Posts: 2
Joined: Thu Apr 06, 2023 8:55 am

Guru Meditation Error (Modbus + httpd)

Postby kossnikita » Thu Apr 06, 2023 9:29 am

Hello

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.
  1. void app_main(void) {
  2.   ESP_ERROR_CHECK(nvs_flash_init());
  3.   ESP_ERROR_CHECK(esp_netif_init());
  4.   ESP_ERROR_CHECK(esp_event_loop_create_default());
  5.   initialise_mdns();
  6.   netbiosns_init();
  7.   netbiosns_set_name(CONFIG_EXAMPLE_MDNS_HOST_NAME);
  8.  
  9.   xTaskCreate(Modbus_Task, "Modbus_Task", 4096, NULL, 10, &modbusTaskHandle);
  10.  
  11.   xTaskCreate(Http_Task, "Http_Task", 4096, NULL, 10, &httpTaskHandle);
  12. }
There's a problem when, simultaneously with the processing of http requests, data is transmitted via modbus.

Error
  1. Guru Meditation Error: Core  0 panic'ed (Cache disabled but cached memory region accessed).
  2. Core  0 register dump:
  3. PC      : 0x400dfb1c  PS      : 0x00060034  A0      : 0x8008339c  A1      : 0x3ffb1b20
  4. 0x400dfb1c: xMBRTUTimerT35Expired at .../firmware/managed_components/espressif__esp-modbus/freemodbus/modbus/rtu/mbrtu.c:339
  5.  
  6. A2      : 0x00000000  A3      : 0x00000000  A4      : 0x00000000  A5      : 0x00000000
  7. A6      : 0x00000001  A7      : 0x00000000  A8      : 0x80083780  A9      : 0x3ffb1b00
  8. A10     : 0x400dfb1c  A11     : 0x00000000  A12     : 0x00060021  A13     : 0x00060023  
  9. 0x400dfb1c: xMBRTUTimerT35Expired at .../firmware/managed_components/espressif__esp-modbus/freemodbus/modbus/rtu/mbrtu.c:339
  10.  
  11. A14     : 0x00000003  A15     : 0x0000cdcd  SAR     : 0x00000004  EXCCAUSE: 0x00000007
  12. EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000
  13.  
  14.  
  15. Backtrace: 0x400dfb19:0x3ffb1b20 0x40083399:0x3ffb1b40 0x400833e0:0x3ffb1b70 0x40083569:0x3ffb1ba0 0x40082cd5:0x3ffb1bc0 0x400846ee:0x3ffaf3a0 0x40085c04:0x3ffaf3c0 0x4008d659:0x3ffaf3e0
  16. 0x400dfb19: xMBRTUTransmitFSM at .../managed_components/espressif__esp-modbus/freemodbus/modbus/rtu/mbrtu.c:335
  17.  
  18. 0x40083399: timer_process_alarm at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_timer/src/esp_timer.c:406
  19.  
  20. 0x400833e0: timer_alarm_handler at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_timer/src/esp_timer.c:451
  21.  
  22. 0x40083569: timer_alarm_isr at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_timer/src/esp_timer_impl_lac.c:186
  23.  
  24. 0x40082cd5: _xt_lowint1 at C:/Espressif/frameworks/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/xtensa_vectors.S:1118
  25.  
  26. 0x400846ee: spi_flash_op_block_func at C:/Espressif/frameworks/esp-idf-v5.0.1/components/spi_flash/cache_utils.c:133
  27.  
  28. 0x40085c04: ipc_task at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_system/esp_ipc.c:87
  29.  
  30. 0x4008d659: vPortTaskWrapper at C:/Espressif/frameworks/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:154

kossnikita
Posts: 2
Joined: Thu Apr 06, 2023 8:55 am

Re: Guru Meditation Error (Modbus + httpd)

Postby kossnikita » Fri Apr 07, 2023 3:57 am


Who is online

Users browsing this forum: No registered users and 128 guests