UART2 not working in TWR-Kinetics K53n512

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

UART2 not working in TWR-Kinetics K53n512

502 次查看
communitycommun
Contributor III


Hello,

       i am trying to configure uart2 for twr-kinetics k53n512 freescale board,but its not working ,i have took library for hello world example of Kinetic series k53n512..

 

below i have attached the project file along with full files detail

 

 

 

please help me by telling where i am failing to print the value

Original Attachment has been moved to: main_kinetis.c.zip

Original Attachment has been moved to: uart.h.zip

Original Attachment has been moved to: uart.c.zip

标记 (2)
0 项奖励
3 回复数

388 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

- Please be sure on the board you use the UART2 , you  can take a photo show which UART port do you use .

- Please be sure the core clock is 50MK on your configuration, and be attention   that :

pastedImage_0.png

so if you use UART2 , it operate from bus clock.

Hope it helps

Alice

0 项奖励

388 次查看
communitycommun
Contributor III

how to configure the bus clock is it like below shown:

       int core_clk_khz= 50*1000;   // were 50 is crystal clock frequency

    

      long int periph_clk_khz = core_clk_khz / (((SIM_CLKDIV1 & SIM_CLKDIV1_OUTDIV2_MASK) >> 24)+ 1);

is peripheral and bus clock are same or not?

how to set the bus clock ,whats the function name..

0 项奖励

388 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

Which IDE do you used ? If  it have PE tools , i recommend you can refer to the PE code .

And i bus clock is refer to you how to configure the clock mode FEI , PEE.....

There is also a demo about TWR-K60, you can refer to :KINETIS512_V2_SC\KINETIS512_V2_SC\build\iar\hello_world

Hope it helps

Alice

0 项奖励