How to use JTAG to debug VisionFive 2?

Description

How can I use JTAG to debug VisionFive 2?

Solution

StarFive has provide the following two ways to connect JTAG with VisionFive 2: