Whenever you're ready, walk me through how you'd approach this.
Explain what volatile, const, and static mean in C, when to use const and volatile, and how you would debug embedded software without printing to a terminal.
Address both language semantics and practical firmware diagnosis. Use Silicon Labs EFR32 and Simplicity Studio terminology where relevant, and explain how your approach avoids confusing compiler optimization, concurrency, memory-mapped hardware, and observability problems.