I thank you much for your assistance. I apologise for the delay in the reply as I was working on getting our board up and running with the same processor.
This issue is only half fixed however.
I took the project from bsp\sdk\2.5.0\boards\frdmkv31f\driver_examples\uart\interrupt\uart_interrupt.c
I built the program and ran it on the KV31F board, with the build in usb port No issues, I get a wake up message on my terminal and what i type out to the control is sent back to me from the control.
I then applied your changes.
I connected a usb to 232 adapter to the KV31F board
J1-15 (porte16 TX) to RX of my adapter board
J2-12 (porte17 RX) to TX of my adapter board
J2-14 (gnd) to gnd of my adapter board.
When the board first powers up I get the sign on message prompting for user input.
The board does not respond to input from my pc to the board. I can see the tx led on my board sending out
to the KV31F, but it does not respond to the serial input.
I am sure there is just another setting that needs to be tweaked to get UART2 working, but for not I cant find it and i have other parts of the board to get up and running for now.
It would appear the only way to send data out the serial port is with the function UART_WriteBlocking. I have tried to use the UART_WriteByte function which works with UART0 but not UART2
Is there any other changes i need to make?
Thanks in advance
Peter Hedlund