Die Seite "How-to-flash-and-debug-with-JTAG"
wird gelöscht. Bitte seien Sie vorsichtig.
Table 1: JTAG Pin Connection | JTAG Pins | 40-Pin Number | VisionFive2 (JH7110) | |———–|—————|———————-| | JTAG TDO | 40 | GPIO44 | | JTAG TCK | 37 | GPIO60 | | JTAG TDI | 38 | GPIO61 | | JTAG TMS | 35 | GPIO63 | | JTAG TRSTN| 36 | GPIO36 |
Debugger used «Olimex Tiny-H»
Apply «0001-U-Boot_SPL_debug.patch» patch into U-Boot project
cd <uboot project folder>
git apply < 0001-U-Boot_SPL_debug.patch
Recompile U-Boot SPL (can refer here)
Flash U-Boot SPL into the boot device of your choice (SD Card, QSPI Flash, or eMMC)
Select the boot device (refer to here)
Power up the board and TeraTerm will display the following message:
Launch the terminal and run OpenOCD
./openocd.exe -f VisionFive2_JTAG.cfg
if you meet error(s) when running the above command. Please check if «ftdi serial» is set correctly
Run «riscv64-unknown-elf-gdb.exe»
target remote: 3333
set $pc=0x40000000
c
Refer here for GDB basic commands
Die Seite "How-to-flash-and-debug-with-JTAG"
wird gelöscht. Bitte seien Sie vorsichtig.