Pin 1 on the JTAG header is at the top right corner and is marked with a square pad.
Because JTAG TDO and PDI DATA are connected on the PCB for this kit, JTAG must be disabled on the device in order to use PDI. The reason for this is that when JTAG is enabled it will enable a pull-up internally on TDO which interferes with the PDI initialization sequence.
This will also be an issue when the application on the device uses the JTAG_TDO pin. Nevertheless it is possible to use the pin if the TDO signal is disconnected from the PDI DATA signal by cutting a strap on the back side of the PCB (the cut strap J203 is on the back side of the board and marked with a text that describes its function). This however will disable the JTAG interface until the connection is re-established by e.g. soldering a bridge on the cut-strap.
It is only required to connect one GND pin