ESP32 is blocked
Posted: Fri Nov 03, 2017 8:53 am
Hello, everybody,
I have a problem with my board (is this https://es.aliexpress.com/item/ESP-32S- ... 0.0.54qhHF), I'm doing a small project, which registers a timer, a button (Pin D4) and 7 touch pad. When the timer activates a binary semaphore in its isr, it sends by wifi the information of the button pressings and touch pads, which has been counting in its isr by means of the increase of two counters, in addition it also sends the temperature of the chip and the wifi signal.
My board is programmed by the esp-idf, I adjust the parameters to send every minute or two minutes. The power supply is via a micro usb cable with a 5v/1A adapterhttps://es.aliexpress.com/item/ORICO-5V ... 0.0.54qhHF.
The problem is that it freezes every two or three days and stops sending information. I have implemented a control in the only task of the program for the system to restore itself every X sent or when it detects corruption in the stack, as shown below. I've also set an interrupt watchdog to restart if it crashes, but nothing works.
It seems as if it is charged with static electricity and blocked, sometimes it also starts sending at longer intervals than programmed, a strange behavior.
Is there any way to know why it doesn't work, when powered through the micro usb connector with a mobile phone charger?
Is there a safe way to restart the board if it stops working?
Please, I would very much appreciate some help to solve this problem, if you need more details I can give you.
Greetings,
I have a problem with my board (is this https://es.aliexpress.com/item/ESP-32S- ... 0.0.54qhHF), I'm doing a small project, which registers a timer, a button (Pin D4) and 7 touch pad. When the timer activates a binary semaphore in its isr, it sends by wifi the information of the button pressings and touch pads, which has been counting in its isr by means of the increase of two counters, in addition it also sends the temperature of the chip and the wifi signal.
My board is programmed by the esp-idf, I adjust the parameters to send every minute or two minutes. The power supply is via a micro usb cable with a 5v/1A adapterhttps://es.aliexpress.com/item/ORICO-5V ... 0.0.54qhHF.
The problem is that it freezes every two or three days and stops sending information. I have implemented a control in the only task of the program for the system to restore itself every X sent or when it detects corruption in the stack, as shown below. I've also set an interrupt watchdog to restart if it crashes, but nothing works.
It seems as if it is charged with static electricity and blocked, sometimes it also starts sending at longer intervals than programmed, a strange behavior.
Is there any way to know why it doesn't work, when powered through the micro usb connector with a mobile phone charger?
Is there a safe way to restart the board if it stops working?
Please, I would very much appreciate some help to solve this problem, if you need more details I can give you.
Greetings,