-
Notifications
You must be signed in to change notification settings - Fork 158
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
Example Switch app on Rainmaker - ESP32 resets when switched from app, switch stays on. (MEGH-5013) #284
Comments
Two things I remembered too late - I set the IDE to clear all the flash before flashing. Also, This is the output when the device was SET UP. Seemed to be lots of errors, but it did connect, so I initially disregarded. █▀▀▀▀▀█ ▀▀▀█▄ ▀ █▄▄▀▀█ █▀▀▀▀▀█ If QR code is not visible, copy paste the below URL in a browser. |
I have now tested the board files 2.0.12. No difference. I thought that maybe the board files for arduino, which also were hanging out in there, might have caused trouble. I cleared ALL files out, only installed 2.0.14, same thing. |
After reading a random post where someone suggested a power supply problem, I put an oscilloscope on the 3.3V Pin on the on board regulator, and tried the operation again. The power dipped .12V below the minimum on the datasheet, and I realized with some horror that I had been using the same cable throughout all this. I put a newer, very short, cable on, and the voltage improved, but the problem remained. So whatever rookie mistake I am making is outside of the power supply. Eliminated. |
The boot logs indicate a watchdog reset. Can you double check your GPIO interrupt/button logic to see if it can cause such issues by hogging the CPU for long? |
When I started this report, I had this fear in the back of my mind that I would turn out to be a complete moron. Well, I AM a moron, sort of. After digging around, and looking at the link I referenced as the guide I used, and looking at my code, I realized it didn't add up, as my code did NOT match the guide, or the examples code in the Arduino library, where I actually thought I got it. I was following this guide on Circuit Digest. - https://circuitdigest.com/microcontroller-projects/esp-rainmaker-tutorial-using-esp32-arduino-ide Meantime, dear helpful and supportive dev's, I sincerely apologize for wasting your time! Thanks guys! |
@phuzzyday , good to know that your problem is resolved, but what exactly was the difference which you addressed? |
Sorry, wordy message... |
Answers checklist.
IDF / ESP32-Arduino version.
2.0.14 in Arduino
Operating System used.
Windows
How did you build your project?
Arduino IDE
Development Kit.
ESP-WROOM-32
What is the expected behavior?
When pressing the switch button on the app, I expect the power to toggle on the output pin.
What is the actual behavior?
Please note - Tried two different boards from two manufacturers with this same ESP module on them. Same result.
The ESP32 Resets, giving the following output on the terminal..
rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
Steps to reproduce.
I believe I followed the steps on the guide, (https://rainmaker.espressif.com/docs/get-started.html), as closely as expected!
I chose the Rainmaker partition scheme, and the smallest flash size was default, and correct.
The two boards tried were labelled on the bottom as; 'NODEMCU ESP-32S', and 'ESP32 DEVKITV1'.
I hope I didn't miss something really dumb. Searching brought up no help, which is unusual, so I may have screwed up in a unique and crazy way. I hope not.
I am going to try to go back one revision on the Arduino board package to see what happens. If this changes, I will post right away.
Debug Logs.
More Information.
The button on the board itself DOES toggle the power on the pin! When doing so, it also communicates the correct pin state to the app, so there is a lot that IS working here!
Also, after the board resets following the app switch being pressed, it goes on to still connect and indicate pin status when the button on the board is used to turn the pin off, or back on..
Can't be a big thing... Go easy on me, I'm a bit new.
The text was updated successfully, but these errors were encountered: