UART in KSDK1.3

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

UART in KSDK1.3

跳至解决方案
1,610 次查看
kirantujare
Contributor IV

I want to use RS232 to send/receive data from my MK50DX256 board. I have a working program in Codewarrior using "Aychroserial bean". I want to write the same in KDS. Which bean should I use? I tried using fsl_uart but in vain.

0 项奖励
1 解答
1,447 次查看
kirantujare
Contributor IV

Hi Daniel,

I wrote a code for my project but it doesn't work even after making the changes in the fsl_uart_driver.c file. I have attached the project below. Please take a look and reply at your spare time. I would appreciate it

在原帖中查看解决方案

0 项奖励
4 回复数
1,447 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi

I can find the "aychroserial" in KDS 3.2, is it right for your requirement ? please check the below picture

K50PE.jpg

Regards

Daniel

0 项奖励
1,447 次查看
kirantujare
Contributor IV

Hi Daniel,

I want to use KSDK 1.3.0. I am being not being to add Asynchroserial to my project. I am using MK50DX256CLK10 processor for my customized board. I wrote my code in Codewarrior and was able to add the Asynchoserial component to it. But it gives an error in KSDK 1.3 project. Please help me

0 项奖励
1,447 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Kirantujare:

The component "asynchroserial" is not supported for your processor, I think you need to use "fsl_uart". But there is a bug on the function of "UART_DRV_IRQHandler", in file fsl_uart_driver.c. you need to add the following two red lines to  the receive interrupt and send interrupt. Please check the below picture.

pastedImage_0.png

Regards

Daniel

0 项奖励
1,448 次查看
kirantujare
Contributor IV

Hi Daniel,

I wrote a code for my project but it doesn't work even after making the changes in the fsl_uart_driver.c file. I have attached the project below. Please take a look and reply at your spare time. I would appreciate it

0 项奖励