uart example for FRDM-25z on KDS

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

uart example for FRDM-25z on KDS

跳至解决方案
4,791 次查看
surenderreddyga
Contributor I

Hi,

 

Can you please provide the code for basic uart application,i.e writing char, reading char.

I tried before, but i was not able to find it

Please help me

标签 (1)
0 项奖励
回复
1 解答
3,913 次查看
adriancano
NXP Employee
NXP Employee

Hi,

Attached you can find an example for FRDM-KL25Z using UART1. The examples echoes of the data coming form TX to RX

I hope this information can help you.

Regards,

Adrian

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
5 回复数
3,913 次查看
surenderreddyga
Contributor I

I am trying to using SDK examples drivers.

UART_HAL_Init(UART1);               //initialize uart

execution is crashing at this point

0 项奖励
回复
3,914 次查看
adriancano
NXP Employee
NXP Employee

Hi,

Attached you can find an example for FRDM-KL25Z using UART1. The examples echoes of the data coming form TX to RX

I hope this information can help you.

Regards,

Adrian

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
3,866 次查看
anuj_msee
Contributor I

I am using mcuexpresso in my macbook to perform uart code for the frdmkl25z to read the input from GPIO bus, but the code you send in the .rar is not working as the only library I am having is "incude<MKL25Z4.h". Also if you can guide me on servo coding for self driving steering control and dc speed control i will be very thankful to you.

0 项奖励
回复
3,913 次查看
surenderreddyga
Contributor I

Hi

That is working fine with the hardware also. Now have to analyze my code why it is crashing.

Thanks for the support..................................................

0 项奖励
回复
3,864 次查看
anuj_msee
Contributor I

Looks like library error. My MCUEXPRESSO IDE when i selected board package i only have option for the "include<MKL25Z4.h".

0 项奖励
回复