Tm4c nested uart interrupts- does each com finishes it's run before the next one executed? -


board: tiva™ c series tm4c1294

ek-tm4c1294xl

my program listening 2 uarts ports(uart  3 , 7)

i encounter of problem im loosing bytes received , im suspecting issue relate uarts interrupts.

i understand uarts have nested interrupts both of them serial?

for example: im inside uart 3 interrupt function , while uart 3 didnt finish interrupt(just copy bytes buffer) uart 7 interrupts arrives, system moves uart 7 or first finish uart 3 , moves uart 7?

currently im suffering error bytes 45-400 bytes file size in 12 mbytes

im suspecting above issue cause issues

p.s if 1 uart sending data have binary same files on both host , pc 

thanks 

idan

depends on interrupt priorities of uartx. uart3 relinquish control uart7 if uart7 priority higher. fact single uart works in copying file on target & pc, fails 45+ bytes in 12mb file when 2 uarts in operation, need excerpts of code implementation analyze. in case copying same single pc-file through 2 different uarts, file locking mechanism needs taken care of or can try 2 duplicate copies of files on pc each uart isolate issue


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -