UART1 in K64 not working

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

UART1 in K64 not working

490 Views
roymessinger
Contributor V

Hi, 

In continuous to my thread here, which dealt with something else, I'm posting my modified UART Interrupt project, from the driver example. I've modified it to work with UART1 but for some reason it does not work. with UART0 (the default) it works great.

The small board below is an RS485 to UART. The UART RX from the small board is connected to J2/4 (TX), the UART TX is connected to J1/16 (RX).

Kerry Zhou, or someone else, can you help?

Thanks,

Roy

 

178444_178444.jpgpastedImage_1.jpg

 

178460_178460.jpgpastedImage_2.jpg

Original Attachment has been moved to: interrupt.rar

0 Kudos
2 Replies

307 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Roymessinger,

   I have modified your interrupt code, now it can work with PTC3,PTC4, UART1. I have test it on my FRDM-K64 board.

   Please unzip my attached .c file to your project.

  •  

     

    Wish it helps you!

    Have a great day,
    Kerry

     

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

0 Kudos

307 Views
mjbcswitzerland
Specialist V

Roy

Probably this line in your code is wrong:

UART_Init(DEMO_UART, &config, CLOCK_GetFreq(DEMO_UART1_CLKSRC));

Regards

Mark

0 Kudos