ESP32-S3 Wroom reset after executing Micro 30 times or so

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Matrixv8
Posts: 10
http://meble-kuchenne.info.pl
Joined: Mon Jun 03, 2024 2:51 am
Been thanked: 3 times

ESP32-S3 Wroom reset after executing Micro 30 times or so

Post 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

mnfisher
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

Post by mnfisher »

Please post some code that demonstrates this


Possibly a wdt issue, but impossible to guess.


Martin

Matrixv8
Posts: 10
Joined: Mon Jun 03, 2024 2:51 am
Been thanked: 3 times

Re: ESP32-S3 Wroom reset after executing Micro 30 times or so

Post 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

mnfisher
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

Post 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

Post Reply