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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

762 Views
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

0 Kudos
Reply
1 Reply

647 Views
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 Kudos
Reply