-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Calling iot_button_create() causes RTCWDT_RTC_RESET (IDFGH-3167) #1857
Comments
If you try a different gpio like 3 does it crash? |
Changing to pin 3 makes it not crash and I get the log output as expected. M5Stack has the buttons wired to 37, 38 and 39. What is the difference between those and number 3 which causes the crash? #define BUTTON_A_PIN 3
|
37-39 have no internal pullups and very weak external pullups on m5stack and this button code uses anyedge interrupts so there must be noise causing a flood of interrupts and crash. |
Ah yeah, makes sense. Back to drawing board. Thanks! |
Hallo. I dont understand. Does it mean the m5stack board has to be changed? Other pullups? Is it same here? |
The button works fine if WiFi is not started, so I don't think its an issue with the button/pullups... (compile/Run one of the Button DEMO sketches if you want proof) |
Dito! Thanks. |
I posted a minimal sketch here: espressif/arduino-esp32#1334 It just prints the status of Button A. If you comment out the WiFi startup, it works fine. If you enable the WiFi startup, the button becomes unstable... |
@evanevery: Yes, I understand. I have same problem |
There is something weird going on. Might be also hardware related. With totally unrelated code I started to get Problem is again with the grey MPU9250 M5Stack. I am able to run the same code with the older Black version without any problems.
|
This is not going to be particularly encouraging, but... I had two ESP8266 4-Relay boards that I got into a similar fashion and could never recover them no matter what I tried. After many hours of screwing around I just bought a couple of raw ESP8266 modules for less than $5ea and reflowed them onto the PCB. Boom! Fixed. Never did resolve that. Even the PCB manufacturer was at a loss... ...and yes, I know this is not an option with the M5Stack... Just a datapoint for perspective.... |
Erasing flash few times and doing |
I'm sure it was worth the effort on the M5Stack! After beating my head against the wall for a couple of days, I suddenly realized it would have been far more efficient for me to just replace the $5 ESP8266 module on the boards I had. I already had a reflow station... |
So I am having exactly the same problem. I am using an M5 grey unit. You can see with detail what is happening here https://forum.littlevgl.com/t/problems-with-interface-after-connecting-to-network/2130/5 |
I am also facing same issue. Not able to drill down why this logs comes. As my device is running more then 1 month continuously. It's very high priority issue as running products gets pushing this logs continuously. rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) Thanks |
While testing the button class from
esp-iot-solution
I noticed every time I call theiot_button_create()
it causes the program to crash. Serial console shows these error messages in a loop.Full code can be seen at tuupola/esp32-examples/tree/master/007-m5stack-iot-button. Important part of the code below.
I have tried compiling with the system esp-idf which is the latest as of today:
I have also tried compiling with the esp-idf which comes as a submodule in esp-iot-solution:
If I comment out the call to
iot_button_create()
program starts to work and I get the log output in the serial console.As a sidenote, after flashing with the broken binary the board becomes semi bricked. While the broken binary is still running, approximately 9 our of 10 reflashing attempts fail.
After successfully flashing with working binary which does not contain
iot_button_create()
call, all subsequent flashing attempts are successful again.I am not sure whether this is an user error, hardware error or a version mismatch. All testing is done with the grey MPU9250 M5Stack.
The text was updated successfully, but these errors were encountered: