Page 1 of 1
ESP32-S3 Wroom reset after executing Micro 30 times or so
Posted: Fri Mar 28, 2025 1:09 am
by Matrixv8
Hi everyone, I have been spending a lot of time on a problem that I can not figure out. I use a transmitter to send an address to a receiver. All is fine decoding the transmitter address. When my code receive the correct address, I call a simple Micro with nothing in it, just to test. I can not understand why after I call the micro 30 time or so, the CPU/board resets. All is working fine everywhere except if I call a Micro 30 times, then a resets happens. Can someone help please.
Thank you,
Pierre
Re: ESP32-S3 Wroom reset after executing Micro 30 times or so
Posted: Fri Mar 28, 2025 3:07 am
by mnfisher
Please post some code that demonstrates this
Possibly a wdt issue, but impossible to guess.
Martin
Re: ESP32-S3 Wroom reset after executing Micro 30 times or so
Posted: Mon Mar 31, 2025 6:55 pm
by Matrixv8
Hi Martin, I found the problem. When I called a micro, I included at the end of the micro an other call to the micro where I came from. I should not have done that and leave it so the micro goes back to the main loop where I call the micro from.
Again thank you for your quick reply.
Pierre
Re: ESP32-S3 Wroom reset after executing Micro 30 times or so
Posted: Mon Mar 31, 2025 7:42 pm
by mnfisher
Hi Pierre,
Glad you got it sorted... Yes - that would give a stack overflow very quickly..
And - you've discovered recursion. It always needs to have a 'termination' clause though
Martin