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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

762件の閲覧回数
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

ラベル(2)
タグ(4)
0 件の賞賛
返信
1 返信

647件の閲覧回数
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 件の賞賛
返信