Hi,
Have you tried with CodeWarrior MCU V10.x software or IAR ARM Workbench?
You could use above IDE softwares to control FRDM-KL25Z UART2 pins.
Before operation PTE22 and PTE23 pins, it need to enable PORTE clock gate at SIM_SCGC5 register at first.
Wish it helps.