how to modify uart_polling to use uart0

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

how to modify uart_polling to use uart0

591件の閲覧回数
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 返信

491件の閲覧回数
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 件の賞賛
返信