Hello All,
I'm using FRDM-KLZ25Z board.
I wrote a program for UART0 driver. Test the program by typing keyboard and send back on the screen the char that i typed. I am using interrupt method then get the value from UART0->D register.
However, this program works for sending out the chars. it does not work for read the char from the keyboard.
any idea why? this so strange.
I have no problem sending out a string. just cannot read a right value back. I have tried many ways, bypass openSDA, connect a serial port directly; using static volatile variable. but it does not work at all.
Thanks in advance
Hi Ajinkya J,
From your problem description, I think your UART0 receive configuration may have problem.
Actually, we have some uart0 sample code for FRDM-KL25, please download it from this link:
After you install it, you can find the uart0 code in the folder:
KL25 Sample Code\kl25_sc_rev10\klxx-sc-baremetal\build\iar\platinum
This code will send the received char data back to the uart0.
Wish it helps you!
If you still have question, please contact with me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------