Closed vbuitvydas closed 2 months ago
Hi. Tried to reproduces your issue using an up to date ubuntu 22.04.4. Just modified openOCD cfg file to use a digilent HS2 with
adapter driver ftdi
ftdi_vid_pid 0x0403 0x6014
ftdi_channel 0
ftdi_layout_init 0x00e8 0x60eb
reset_config none
Everything is working. Could you provides riscv toolchain version you use (from package manager / downloaded), same question for openOCD (ubuntu version or riscv ?) Thanks
hi @trabucayre,
thanks for looking into this.
I am using: Ubuntu 22.04.04 on WSL2. OpenOCD - Open On-Chip Debugger 0.11.0+dev-04033-g058dfa50d (2024-04-11-15:48) GDB - GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
both OpenOCD and GDB are installed from package manager.
Ok its looks similar to my setup. Could you try with a computer running a native Linux? Maybe something fails with usbip ? Or wsl2 version is a bit different than official ubuntu ?
Looks like issues was caused by using Ubuntu on WSL2. Tested on different machine using native Linux and setting breakpoints and stepping trough code works fine. Thanks @trabucayre!
Is it possible to set up some IDE such as eclipse to debug CPU code instead of executing commands trough GDB?
Great! for IDE I think so but I have never used this type of tools.
Having issues while stepping trough code:![image](https://github.com/myriadrf/LimeSDR-XTRX_LiteX_GW/assets/25218697/1a3ed641-8a2a-4de8-8141-2557e925afb4)
Steps to reproduce: