Hi @aditya-skymob
I think here are two practical steps to investigate further:
Enable Logging: Add logging to critical points in your code (e.g., task switches, exceptions, etc.). If possible, use an external serial logger or a SEGGER RTT logger to capture logs even if the system hangs.
Use a Dedicated HardFault Logger: Store the hard fault context (register values, stack trace) into a non-volatile memory region if possible. After a reset, you can read these logs to understand the state prior to the crash.
BR
Harry