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
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 :
so if you use UART2 , it operate from bus clock.
Hope it helps
Alice
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..
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