S32K STATUS UART RX OVERRUN WHILE AD WITH DMA

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K STATUS UART RX OVERRUN WHILE AD WITH DMA

742 次查看
rvalente
Contributor III

Hello Mates,

my S32K is using the UART as modbus 485, eventually during the AD through DMA capture (very long, 7000 captures or so) the UART gets STATUS UART RX OVERRUN error on a interrupt..

I've it fixed using the deinit and restarting it, it works but I believe this is not necessary.

Any tips of why the DMA capture end interrupt maybe conflicting my UART interrupt? Priorities, maybe?

 

Greetings from Brazil, Renan

0 项奖励
1 回复

720 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @rvalente,

Yes, you can set a higher interrupt priority for the UART.

Maybe you have a long DMA complete interrupt routine that can't be preempted by a lower-priority UART interrupt.

Or you can just increase the system clock frequency.

 

Regards,

Daniel

0 项奖励