Desk-screen project adds crash recorder that pinpointed a stack overflow
The Altar desk display, built on an ESP32-S3-BOX-3 board driven by a Mac hub, now records a core dump of its state whenever firmware panics. The dump lives in a dedicated 128 KB flash partition, with the panic message kept in memory that survives reboots, and the hub decodes it against the matching firmware build. The recorder costs about 4.3 KB of internal RAM, far above the 512 bytes originally budgeted, which forced a rewrite of the memory plan and left free RAM at an estimated 9.2 KB. Within 45 minutes of first use, it reported a stack overflow in the climate task, and a static analysis of worst-case stack usage then revealed that the climate and presence tasks exceeded their budgets by 768 bytes each, with the face task over by 128.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in