K60 UART ISR not stopping

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K60 UART ISR not stopping

ソリューションへジャンプ
1,086件の閲覧回数
barric
Contributor I

hi everyone, I'm having trouble with my K60 UART ISR. I want to set a flag in the ISR when UART transfer has been completed or when data has been received. I've set UART3_C2=0x5c (TCIE, ILIE, TE, RE) and the ISR is getting called after I've sent a byte but then it's getting called again and again without stopping (and without me sending/receiving data). I disable the IRQ in the beginning of my ISR and enable it in the end but it doesn't work out. I've tried reading all kinds of status flags or UART3_D and I even tried writing to latter but still my ISR won't stop being called.

 

Maybe i gotta say that I didn't know how to register my ISR so I just entered the function name in the vector table. Don't know if the system behaves differently this way.

 

How can I make it work properly? BTW: I'm using FreeRTOS (if that matters)

0 件の賞賛
返信
1 解決策
682件の閲覧回数
PaoloRenzo
Contributor V

Hi

 

Are you disabling the xmit interrupt when you don't have anything else to xmit? Otherwise, tx irq will be signaling about available space in UART buffer

 

Also looking at MQX uart driver might help you to get an idea about this

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
683件の閲覧回数
PaoloRenzo
Contributor V

Hi

 

Are you disabling the xmit interrupt when you don't have anything else to xmit? Otherwise, tx irq will be signaling about available space in UART buffer

 

Also looking at MQX uart driver might help you to get an idea about this

0 件の賞賛
返信
682件の閲覧回数
barric
Contributor I

Thanks Paolo, that was exactly the problem!

0 件の賞賛
返信