Hi g0930421313@gmail.com,
If I understand your question correctly, you are looking for a UART RX & TX to connect the FRDM-K22F to the ESP8266 Writer board? It looks like you also need some GPIO, but I think that's less of an issue as there looks like there are a number of DI/DOs available on the FRDM-K22F.
I think I have a reasonable understanding of the FRDM-K22F board and I think I understand the connections between it and the AGM01 board. Unfortunately, the pinouts of the connectors on the two boards are not easily cross referenced.
Looking at the AGM01 QRC and the FRDM-K22F's schematics, AGM01's J1-1 corresponds to the FRDM-K22F's J1-2 which is "D0". With this, you can go down the pins on the left side of your "Fig. 2" as:
AGM01 FRDM-K22F
J1-1 D0
J1-2 D1
J1-3 (INT1-8700) D2
J1-4 D3 (PTA2/UART0_TX/FTM0_CH7/GREEN LED)
J1-5 (INT2-8700) D4
J1-6 (INT1-21002) D5
J1-7 D6
J1-8 D7
J2-1 (INT2-21002) D8
J2-2 D9 (PTA1/UART0_RX/FTM0_CH6/RED LED)
J2-3 (SPI-CSB-21002) D10
J2-4 (SPI-MOSI) D11
J2-5 (SA0-MISO) D12
j2-6 (SPI-SCLK) D13 (PTD5/FTM0_CH5/SPI1_SCK/BLUE LED)
If I understand what's happending correctly (and I don't think I'm 100% right), AGM01 J1-4 (FRDM-K22F D3) and AGM01 J2-2 (FRDM-K22F D9) are unused. You'll note that these pins are the Tx/Rx of UART0 and you should be able to use them but...
They are also used to drive the red and green LEDs on the FRDM-K22F. If you are going to use these pins for the RX & TX, I highly recommend that you remove R91 and R92 on the FRDM-K22F so the current sink of the LEDs don't affect the serial operations.
I would recommend running the signals from D3 and D9 of the FRDM-K22F out using an Arduino prototyping shield (I use PROTO-SHIELD - it's cheap and easy to work with).
I notice in the QRC that the SPI1_SCK is used on J2-6, which corresponds to D13 and drives the blue LED on the FRDM-K22F - while you're removing R91 & R92, I would recommend that you also remove R93 so the load of the blue LED doesn't affect your SPI operations (in my prototyping with the FRDM-K22F, I use SPI1 as well and I found I had to pull R93 for best operations).
Good luck, let me know how you make out or if I'm completely out to lunch in my interpretation of the documentation (such as it is).
myke