Hello Espressif,
I am trying to send a json data through HTTPS POST Request to a Postman mock server. The data from nrf52833 dk is received to ESP32-C3 through UART Communication. To store the data in JSON format i have used esp-idf-cJson github library. For UART and HTTP protocol I have referred to uart_asyn_rxtx_example and esp_http_client example.
The issue is when I am storing the data in uart thread in json format and print the Json through "cJSON_Print(root)" it shows me "Guru Meditation ErrorL Core 0 Panic'ed(store access fault)" and further when the char string is passed to http thread in "esp_http_client_set_post_field(client, json_packet, strlen(json_packet))" function it shows me "Meditation ErrorL Core 0 Panic'ed(Load access fault)". I am not able to resolve the issue from last fortnight . I have attached the error image and code file for the same.
Guru Meditation ErrorL Core 0 Panic'ed(store access fault)
-
- Posts: 11
- Joined: Tue Jun 14, 2022 6:30 am
Guru Meditation ErrorL Core 0 Panic'ed(store access fault)
- Attachments
-
- store access fault1.PNG (104.86 KiB) Viewed 5850 times
-
- store access fault.PNG (97.19 KiB) Viewed 5850 times
-
- esp_http_client_example.c
- (10.89 KiB) Downloaded 294 times
-
- Posts: 11
- Joined: Tue Jun 14, 2022 6:30 am
Re: Guru Meditation ErrorL Core 0 Panic'ed(store access fault)
Hello Espressif teams,
It would be really nice if I get some response from side.
It would be really nice if I get some response from side.
Re: Guru Meditation ErrorL Core 0 Panic'ed(store access fault)
I have seen this in a quite similar module environment you are using. I could debug this down to a stack overflow issue. I changed all str copy task to strictly copy not more then the buffer sizes are ( e.g. snprintf() ) and doubled the stack size of the UART and WiFi stack.
Since I have not seen this error again. To nail it down what exactly causes this issue was not in the budget of the project.
May be it helps
Since I have not seen this error again. To nail it down what exactly causes this issue was not in the budget of the project.
May be it helps
Re: Guru Meditation ErrorL Core 0 Panic'ed(store access fault)
Hi meetshah10,
From the screenshots, the issue looks like a heap corruption: the backtrace points to the heap allocator code. I would recommend enabling heap poisoning as described in this section of the docs: https://docs.espressif.com/projects/esp ... corruption
This should help you find which code might be writing out of bounds of the allocated memory.
From the screenshots, the issue looks like a heap corruption: the backtrace points to the heap allocator code. I would recommend enabling heap poisoning as described in this section of the docs: https://docs.espressif.com/projects/esp ... corruption
This should help you find which code might be writing out of bounds of the allocated memory.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 95 guests