Facing some problem while running my application code(uart0) in config2

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

Facing some problem while running my application code(uart0) in config2

1,788 次查看
Embionics
Contributor III

I have written some uart0 code for FRDM KL25Z(with KL25Z128M microcontroller). I am using Codewarrior MCU10.3 . The code is to receive a random string on uart0, and to transmit the same string back on uart0. It is working fine with cpu configurations 0 and 1, in config2 uart 0 is not transmitting the string exactly(For example, it is transmitting ADG if i send ABCDEFG).

 

I have changed the CPU configuration in line 32 of UART0.c file of my project. I am also attaching my project along with a snapshot of cpu settings. Kindly help me in fixing this problem.

 

Thanks in advance

Original Attachment has been moved to: Gateway_Test.rar

标记 (4)
0 项奖励
回复
1 回复

1,673 次查看
jonathanscott
Contributor III

Hello Amreen,

Just a thought - If UART0 is running at 115200 bps, is it possible that your bus clock in config 2 (shown as 800kHz) is too slow to accurately receive the data?  Does it work correctly if you reduce the baud rate to 9600?

Regards,

Jonathan

0 项奖励
回复