Hi,
There is ant example for IPC with blink led?
I want to write an array with delay from cpu1 to cpu2 and blink a led according to to array.
I want a simple example without an interrupt
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
There is ant example for IPC with blink led?
I want to write an array with delay from cpu1 to cpu2 and blink a led according to to array.
I want a simple example without an interrupt
Thanks
Hi,
Currently there is no example without the interrupt. But you are use the IPC interrupt example as reference and build a polling-based example.
In the example, CPU1 sends a command using the Flag0, which is configured to generate the interrupt on CPU2. Instead you can wait for the Flag on CPU2 using the function IPC_waitForFlag()
Regards,
Veena
Another question pleae,
How I can debug this?
I want to see what the cpu2 get from cpu1
It is very similar to the interrupt based example. Instead of reading the command from the ISR, you would poll for the Flag and then read the command
IPC_waitForFlag(IPC_CPU2_L_CPU1_R, IPC_FLAG0);
IPC_readCommand(IPC_CPU2_L_CPU1_R, IPC_FLAG0, IPC_ADDR_CORRECTION_ENABLE,
&command, &addr, &data);
Regards,
Veena