how to modify uart_polling to use uart0

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

how to modify uart_polling to use uart0

941 次查看
tuomasaaltio
Contributor II

I want to modify "uart_polling" example to use uart0. When I changed the line

#define DEMO_UART UART0

it causes assert failure in function UART_GetInstance in UART_Init.

Can't UART_Init work with uart0?

I'm using FRDM-KL25Z

0 项奖励
回复
1 回复

841 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I do not know the background of the error, what is the error message of the "assert failure", I suppose that the  gated clock of the corresponding uart module is not enabled, or the uart pins are not assigned.

Pls tell us the error message.

BR

XiangJun Rong

0 项奖励
回复