I have implemented an application running on M4 core using Rpmsg and ecspi.
There are two freertos tasks: one for cyclic query over ecspi3 to get data from slaves. The other task for cyclic query over Rpmsg to transfer data from M4 to A7 and vice versa.
If both tasks running together, the M4 crash after some seconds. Both tasks for itself are running infinite (if I comment out the other).
So I don’t know why my application crashes if both tasks are active.
Is there a resource which is used by both rpmsg and ecspi (Systick, …)?
Priority of tasks are different. There are also a delay in both tasks so the other one can do some work and enough time for idle task. I checked this with GPIO pins and a oscilloscope. Think the task scheduling is ok.
In my ecspi task I also use two GPIO pins and a GPT. Maybe that cause the problem. But I commented out GPIO and GPT so only ecspi was active and the problem still exists.
Hope you can help me. Thanks.