We are developing a AMP product with 2 ADSP21565. The overall structure of the system is as picture below. Where in the picture, the link port is used to transfer audio data between DSP1 and DSP2. And the SPI_2 is used for DSP1 to boot from Flash and flashing the Flash when doing OTA upgrading; SPI_1 is used to send tuning data and OTA flashing data from MCU to DSP1.
To make the link port, SPI_1 work and take less workload of DSP1, we configure all of them working in interrupt way. Codes below are the setting of link port of DSP1:
The callback function of the link port is implemented as below:
And the configure of SPI_1 is as below:
Codes below are the callback function implements for SPI_1:
Now, when debugging SPI_1 and link port separately, either link port or SPI_1 can work properly. But when we used link port and SPI_1 together, only link port callback can be called, and the callback function of SPI_1 will never be reached. So, we think that we need to reset the interrupt priority of the interrupts of link port and SPI_1. Then, we set the interrupt priority as the following way, so that interrupt SPI_1 will be higher than that of link port:
But the problem is still unsolved. So, could you tell us where is the problem? Why the interrupt priority seems invalid? Do you have any demo projects that can make link port and SPI interrupts work together?
Thank you!