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.

nested interrupts for 2 uarts inputs

Hi im using 

Board: Tiva™ C Series TM4C1294

EK-TM4C1294XL

my program is listening to 2 uarts ports(uart  3 and 7)

I encounter of problem that im loosing some bytes received and im suspecting that this issue relate to the uarts interrupts.

i understand that uarts have nested interrupts but does both of them are serial?

for example: im inside uart 3 interrupt function and then while uart 3 didnt finish the interrupt(just copy their bytes to buffer) uart 7 interrupts arrives, does the system moves to uart 7 or it will first finish uart 3 and then moves to the uart 7?

currently im suffering from error bytes something like 45-400 bytes for file that his size in 12 Mbytes

im suspecting the above issue cause this issues

p.s if only 1 uart is sending data i have binary same files on both host and pc 

Thanks 

Idan

  • Hello Idan,

    What is the baud rate being used? Is the FIFO enabled and if yes, then what is the threshold. To me it seems that ISR is doing a lot of processing causing the interrupt handler to continue for a longer time than expected and hence data loss.

    Regards
    Amit