Hello,
I have a DMA ISR in CPU1 at a frequency of 31.2 kHz and inside this ISR CPU1 sets IPC flag 0. Then, I have another ISR FLAG0-ipc inside CPU2 code. I would like to know the time between CPU1 sets the flag and CPU2 enters the ISR. I'm using GPIOs to measure this time through an oscilloscope and I'm getting around 1.3us of delay, which I think its too much according to datasheet which I think it talks about 2 clock cycles.
I'm running at 200MHz clock. I modified my code in order to have only one interrupt in cpu2 (this IPC flag0 interrupt) and nothing in main while(1)bucle, since first I thought that this big time was due to cpu2 maybe was doing other tasks with higher priority. But now nothing is executed by cpu2 except this interrupt. The same for CPU1, now I only have DMA interrupt service routine to set IPC flag0 and only watchdog clear in while(1) bucle.
What I'm doing wrong? How can I measure this time?
Thank you very much
maite