JTAG is an interface that allows 1) testing of inter-chip connections 2) programming of Flash, microcontroller and FPGA devices.
Further reading:
- Boundary Scan, JTAG, IEEE 1149.1 Tutorial
- IEEE Std 1149.1 (JTAG) Testability Primer TI application note