Close

Stack Issue

A project log for TFT Touch Keypad (3x5)

The project uses the Makerfabs-ESP32-S3-SPI-TFT-with-Touch board to produce a Touch-Deck

michael-otooleMichael O'Toole 09/08/2023 at 11:051 Comment

Looking for help with Stack issue...

To begin I best point out the project was built using sample code. Somewhere in this code or my implementation of it, the stack reduces on each key processed and eventually the board resets. I added code to report the stack size after each process and it is being reduced and eventually reboots, ( something is being pushed to the stack but not popped)...

It's not major (if you don't mind the board resetting every so often), but it has to be fixed... any help appreciated...

The touch detection should probably be an interrupt (instead of inside a loop), this may account for stack issue...

Discussions

Michael O'Toole wrote 09/12/2023 at 12:18 point

Stack issue fixed... Thanks to MicroController over at ESP32 Forums.

He spotted my code had an (infinite recursion), I rewrote the code and my excuse is... wood for the trees.

  Are you sure? yes | no