I running an MQX 4.2 system over K65 with the following resources:
- Internal ADC sampling at 8K per sec.
- External ADC connected as a single SPI slave, sampling at 2K per sec (baud rate 750K).
- TCP server sending ~45 pps (each packet ~1K long) to a single client, over 100M ETH
- Shell over UART
The external SPI ADC raises an interrupt upon data ready.
I'm seeing as issue where SPI losses data and eventually would hangs in the middle of a read transaction.
Looking at the SPI lines show that CLK just stops working, causing everything to halt.
If the system does not send TCP data, the SPI works perfectly.
Only workaround I found was to change the SPI interrupt priority above all other peripherals and the SPI handling task above all other tasks.
It seems like MQX is loosing SPI interrupts for some reason.
Any idea how to fix that?