how to modify uart_polling to use uart0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to modify uart_polling to use uart0

427 Views
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 Kudos
1 Reply

327 Views
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 Kudos