I have written a simple application in freescale kinetis TRK-KEA128 MCU for UART loop back.
I have enabled receive interrupt and in the ISR i will transmit back the recieved char.
I am using Putty to test the behaviour. Everything works fine until I switch off the board.
Later when I switch on and transmit a character via Putty, no data is written back to the Putty terminal.
What could be the reason behind it?
Hello Dino,
Download the project again , does it can work well ?
I think you can send your project to me , i will test and check it on my side .
BR
ALice
It got resolved when I created a new project. But I don't understand what was the problem with my previous project even though it was working until I switch off the device.
But still I have one more problem. Currently I am using code warrior 10.6.
I am supposed to work on Kinetis Design Studio since my serial application is dependent on Linux machine.
Could you please provide a working KDS project??
Thanks
The reason is KDS doesn't support the board TRK-KEA128 instead it only supports the SKEAZ128xxxx4 processor.
Also I tried importing/converting the Code warrior project to KDS project but was unsuccessful.
Even KSDK support is not available for TRK-KEA128..Could you please direct this question or should I create another blog?
Also I need to set the UART baud rate to 115200. I tried the changing the BDL & BDH values, but the values seems to be uncorrect.
For 115200, I assigned BDL= 7 and BDH = 0.. Some of the characters displayed in putty is not correct???
By default the baudrate was 9600, BDL = 128 and BDH = 0.. All characters display correctly. Could you please explain the logic/theory of setting the BDH and BDL for correct values?
Hello David,
(1) On KDS, when you create project for your board , you can select the chip of SKEAZ128xxxx4,
this is the chip of your board . And yes, the ksdk doesn't support this chip, while , you can select
the Processor Expert(PE) when you create project , also can create bare board project (without PE).
(2) About the UART baud rate , i don't know what the value of other register about it , so you can refer to
the formula to calculate :
or if you create one PE project , you can directly configure the baud rate on the UART
component view:
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------