LPC824 ROM API UART0 interrupt bug

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

LPC824 ROM API UART0 interrupt bug

819 次查看
tim_tan
Contributor I

Dear Sir:

 

I got problem of LPC 824 ROM API of UART.

I used uart0/uart1/uart2 to R/W data 

use the ROM API, call interrupt function as below
LPC_UARTD_API->uart_isr();

Only UART0 will not clear the interrupt FLAG => INTENCLR.TXRDY
Other UART1 UART2 will be.
Caused to continue to be interrupted, and finally Crash

Is there any bug in ROM API UART0 ???

any idea of this? please help!

thanks!

0 项奖励
回复
1 回复

801 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @tim_tan ,

As you mention, in the vector interrupt should be set the  INTENCLR.TXRDY to clear the corresponding bit in the INTENSET register, but using the periph_uart_rom_init to test this it looks like the corresponding bit in the INTENSET was cleared. I will suggest confirming with this example code.

Also, if this issue isn't solved, could you let me know how can I replicate it?

Best Regards,

Alexis Andalon

0 项奖励
回复