Unpredictable behavior when extracting SVC number inside handler — sometimes causes BusFault
Hi everyone,I'm new to embedded programming and trying to understand how SVC (Supervisor Call) works on ARM Cortex-M.I wrote a small program that triggers an SVC call, and in the SVC handler, I try to extract the SVC number by accessing the PC that w...