AM6422: How to monitor R5 FreeRTOS running status by A53 linux

Part Number: AM6422

Tool/software:

Hi TI experts,

I'm using AM6422 customized board with A53 running Linux and R5 running FreeRTOS.

How can the A53 Linux monitor the R5 FreeRTOS running status?

I did some tests, and found that if the R5 FreeRTOS had a stack overflow, the /sys/class/remoteproc/remoteproc0/state still shows running. Is this normal?

And I found there are coredump and recovery under /sys/class/remoteproc/remoteproc0/. How should I use them after change their value to enabled?

BR

xixiguo