Closed fritzbauer closed 2 years ago
Hi,
Error: 146 97 core.c:1125 jtag_examine_chain_check(): JTAG scan chain interrogation failed: all ones Error: 147 97 core.c:1127 jtag_examine_chain_check(): Check JTAG interface, timings, target power, etc. Error: 148 97 core.c:1617 jtag_init_inner(): Trying to use configured scan chain anyway... Debug: 149 97 core.c:1368 jtag_validate_ircapture(): IR capture validation scan Error: 150 97 core.c:1417 jtag_validate_ircapture(): lx.cpu: IR capture error; saw 0x0f not 0x01
Seems to indicate an issue at the JTAG level.
But with the working yaml, it doesn't appear and all work well ?
According to the wiki this is the expected output: https://github.com/enjoy-digital/litex/wiki/Use-GDB-with-VexRiscv-CPU#-example
Just checked, these lines also occur with the working yaml definition.
Also, what I forgot to mention before:
I am using the ocd debugger over the uartbone, but via a dedicated uart, not via crossover as described in the wiki:
self.add_uartbone(name="serial_debug", baudrate=115200)
Ahhh funny XD
Maybe the wiki needs to be updated accordingly?
I think you are right, the not working yaml is a reaaaaaly old one :)
Updated, thanks :)
Nice, thank you!
Issue
When stepping through the code using the telnet connection to openocd at some point the program counter won't be incremented anymore. I can step over the instruction with "step" and manually setting the register according to the lw instruction, however this is tedious.
The issue only occurs when this as cpu0.yaml: https://github.com/enjoy-digital/litex/files/8609336/cpu0.yaml.txt However, when using this version it is working: https://github.com/litex-hub/pythondata-cpu-vexriscv/blob/master/pythondata_cpu_vexriscv/verilog/VexRiscv_Debug.yaml
Maybe the wiki needs to be updated accordingly?
Environment
I am running a plain build of the QMTech 5CEFA2 Board:
python litex_boards/targets/qmtech_5cefa2.py --cpu-type=vexriscv --cpu-variant=standard+debug --build --load
Furthermore I followed these instructions for debugging: https://github.com/enjoy-digital/litex/wiki/Use-GDB-with-VexRiscv-CPU
Please find the output of the following command attached:
ocdLog.log