Closed falkoschindler closed 5 years ago
Try add vTaskDelay(100/portTICK_PERIOD_MS)
, it will be ok :)
Thanks for your quick reply!
Unfortunately, vTaskDelay(100/portTICK_PERIOD_MS)
or even vTaskDelay(1000/portTICK_PERIOD_MS)
does not help.
I found the problem, Try test it https://github.com/sakabin/m5stack-cam-psram/tree/mpu6050 These are all needed
Awesome! That solved my problem.
I could even get it wo work with these lines only:
gpio_reset_pin(GPIO_NUM_23);
gpio_reset_pin(GPIO_NUM_22);
esp_restart();
This avoids the need for imuTaskExit()
, which is a bit inconvenient to implement.
I'm trying to restart the ESP programmatically using
esp_restart()
. But after doing so, the camera can't be initialised. These are the last log messages after rebooting:The issue can be reproduced inserting the command
esp_restart();
within an http handler, e.g. inimu_handler
on the origin/mpu6050 branch and requesting the imu endpoint.Is there anything I can do to restart the ESP on demand?