-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A "LoadProhibited" error occurs when uploading data using ESP_Rainmaker. (MEGH-5216) #298
Comments
The code is quite long and it would be better if you can try to isolate the problematic piece at your end first. Moreover, instead of increasing the stack size, have you tried decreasing it, so as to ensure that other modules can have enough RAM to allocate their data? |
Thanks a lot for receiving your reply. Firstly the stack depth of the task is from 4096~256*1024 I have tried this and unfortunately this does not work, secondly as I said above my problem occurs with this line of code task: ESP_ERROR_CHECK(rmaker_report_data(water_data)); It corresponds to the following execution function: esp_err_t rmaker_report_data(water_data_t *water_data)
{
if (water_data == NULL)
{
return ESP_FAIL;
}
ESP_ERROR_CHECK(esp_rmaker_param_update_and_report(
esp_rmaker_device_get_param_by_type(water_sensor_device, "温度"),
esp_rmaker_float(water_data->temp)));
ESP_ERROR_CHECK(esp_rmaker_param_update_and_report(
esp_rmaker_device_get_param_by_type(water_sensor_device, "TDS值"),
esp_rmaker_float(water_data->tds)));
ESP_ERROR_CHECK(esp_rmaker_param_update_and_report(
esp_rmaker_device_get_param_by_type(water_sensor_device, "浊度"),
esp_rmaker_float(water_data->turb)));
ESP_ERROR_CHECK(esp_rmaker_param_update_and_report(
esp_rmaker_device_get_param_by_type(water_sensor_device, "水位"),
esp_rmaker_float(water_data->deep)));
/* Check the current weather text */
if ((water_data->temp) >= 40)
{
ESP_ERROR_CHECK(esp_rmaker_raise_alert("水温超过40℃"));
}
if ((water_data->tds) >= 100)
{
ESP_ERROR_CHECK(esp_rmaker_raise_alert("蓄水池TDS值异常"));
}
if ((water_data->turb) >= 1)
{
ESP_ERROR_CHECK(esp_rmaker_raise_alert("蓄水池浊度超过1NTU"));
}
return ESP_OK;
} Every time the program runs to this step the error I mentioned occurs, only by removing this task my program can run stably, but then it won't be able to complete the data uploading and updating requirements. Thank you so much for checking out the problem for me and I hope you can assist me in solving it. I will be grateful! |
How can I solve this problem, please? |
You didn't answer my question but closed it? |
@EtrusUp , the issue in esp-idf was closed because it was a duplicate of this issue. Meanwhile, please replace your |
I am indebted to you beyond words! Thank you for taking the time to address my question, even though it seems silly now, sorry I don't understand it very well yet, I'm learning. |
Answers checklist.
IDF / ESP32-Arduino version.
v5.1.2
Operating System used.
Windows
How did you build your project?
Command line with CMake
Development Kit.
ESP32-S3-SCH-V1.4
What is the expected behavior?
Successfully created the rainmaker entity to collect my sensor data and upload it in real time!
What is the actual behavior?
It didn't work as expected, and whenever it ran to data upload, he had the following malfunction.
Steps to reproduce.
First of all here's my complete code.
As you can see I was able to increase the stack depth when creating the task, but unfortunately it still triggers the issue. You can see my log reaction before and after uploading the data in the task "get_date_task", my program completes this part
without any problem, but at this part
the program sends a fault with the following error code.
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: