The customer designed a standard 4×4(16-pin) grid on their boards to standardize the JTAG programming signals.
These signals had to be routed to any grid position in any combination and configuration. Key constraints included the need for full programmability, only four available wires between the tester and the external JTAG MUX, the inability to add additional wiring, and severe space limitations within the existing system.
After evaluating multiple approaches, we determined that the existing system could provide only four connections between the tester and the JTAG MUX. To overcome this challenge, we implemented microcontroller-based architecture that communicates with the tester through an RS-232 interface. Two wires are used for RS-232 communication, and two wires provide power to the JTAG MUX. The microcontroller receives commands from the tester and dynamically reconfigures the signal routing using analog switches, providing complete routing flexibility while preserving the existing tester infrastructure.
The selected controller was the STM32L432KC from STMicroelectronics and the signal routing was implemented using MAX14661 analog switch devices. Firmware was developed to continuously monitor RS-232 commands and translate them into switch-control instructions in real time. Communication between the STM32 microcontroller and the MAX14661 devices is performed through the I2C interface. Upon receiving a routing command, the firmware updates the switch configuration and establishes the required JTAG signal path without interrupting system operation.
To further simplify system configuration and improve usability, a dedicated graphical application was developed for the JTAG MUX system.
Instead of manually entering RS‑232 commands, users can assign JTAG signals to grid locations through an intuitive graphical interface. The application visually represents the 4 × 4 routing matrix and allows users to select signal-to-pin assignments using simple point-and-click operations.
Once the desired routing configuration is defined, the application automatically generates all required JTAG MUX commands and saves them to a command file. This file can then be executed by the tester software to configure the routing matrix automatically.
Key benefits of the graphical configuration utility include:
The graphical utility significantly enhances the overall user experience by allowing engineers to configure JTAG routing visually while automatically generating the corresponding RS‑232 command sequences required by the JTAG MUX firmware.
Example Workflow
This approach allows complex routing configurations to be created in seconds without requiring users to manually construct individual commands such as:
The JTAG MUX powers up and initializes the STM32L432KC microcontroller, verifies communication with all MAX14661 devices, displays a status message over RS-232, receives routing commands from the tester, programs the MAX14661 devices over the I2C bus, and establishes the requested signal path. The result is a compact, cost-effective, and fully programmable JTAG routing solution that satisfies all customer requirements while operating within strict space and wiring constraints.
The JTAG MUX can also be used in other applications that require signal routing within a voltage range of 1.8 V to 5 V. In addition to JTAG signal routing, it can be utilized with various programming and test systems that require multiple signals to be switched or routed between different devices.
The Flying probe system JTAG MUX project successfully delivered a fully programmable JTAG routing solution for an existing FLS platform while operating within strict hardware constraints. Despite having only four available connections between the tester and the routing module, the implementation leveraged an STM32L432KC microcontroller, RS-232 communication, and MAX14661 analog switches to provide complete routing flexibility.
The solution enables dynamic assignment of JTAG signals to any position within the 4 × 4 grid, eliminating the need for rewiring and simplifying support for multiple DUT configurations. The compact design, seamless integration, and robust firmware architecture allowed the customer to upgrade their existing tester capability without significant hardware modifications, resulting in a cost-effective and scalable enhancement to the Flying probe system platform.