Hi, I have a problem on I2C interrupt priority.
On my board there is a GPS on uart1 trasmitting data at 10 Hz, at 57600bps, I had a lot of overrun problem on the UART1, so I changed the priority of the interrupt in order to have uart1 higher interrupt, and consequently set to lower interrupt the others. Now UART has level 2 interrupt priority, but if I change the priority of I2C1 interrupt to 2 or 3 this stop working, the interrupt handler of I2C is no more reached, the uart interrupt handler instead is working better but sometime a overrun occur 1 every 30-40 second of trasmission, before was 1 every second).
So, these are my question:
1) working with uart, even if it has no higher interrupt, it seems to strange to be not able to manage the small quantity of data we are receiving, we are working with fifo buffer, but it is only 4 word deep, maybe not enough, any suggestion on how to improve the uart management?
2) why if I set up the interrupt priority of I2C lower or equal the UART priority, the I2C interrupt stop working? Any suggestion about this?
Let me know if there is anything else I can aid with,
Yes, you are right, I use lot of interrupt, this is a porting from LPC4088 that has a different DMA, and in the LPC4088 DMA is implemented, on the iMX it is not yet implemented because of different peripheral, so I have to understand how to implement it.
Do you know of some application note related to the DMA, how to configure, how it works and how to implement?