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
ESP32-S3 Wroom reset after executing Micro 30 times or so
-
- Posts: 10
- http://meble-kuchenne.info.pl
- Joined: Mon Jun 03, 2024 2:51 am
- Been thanked: 3 times
Re: ESP32-S3 Wroom reset after executing Micro 30 times or so
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
Again thank you for your quick reply.
Pierre
-
- Valued Contributor
- Posts: 1453
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 135 times
- Been thanked: 707 times
Re: ESP32-S3 Wroom reset after executing Micro 30 times or so
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
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