Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues using Eclipse to run and debug the software #299

Open
hparpinel opened this issue Feb 13, 2023 · 8 comments
Open

Issues using Eclipse to run and debug the software #299

hparpinel opened this issue Feb 13, 2023 · 8 comments

Comments

@hparpinel
Copy link

Hi,

I am trying to use Eclipse to run and debug the software following the steps in the repository but I get the error below. I installed the XPacks and added the path to openocd. I am not sure what I am missing.

Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: Connection timed out.
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: Connection timed out.
localhost:3333: Connection timed out.

@Dolu1990
Copy link
Member

Hi,

What's is openocd logging in the shell when it is running ?

@acillatems
Copy link

Hi!

I've got the same error. Here are the only errors in openOCD logging:

342,122 13-gdb-set charset ISO-8859-1
342,138 13^error,msg="Undefined item: "ISO-8859-1"."
342,138 (gdb)
342,138 14source .gdbinit
342,154 &"source .gdbinit\n"
342,154 &".gdbinit: No such file or directory.\n"
342,154 14^error,msg=".gdbinit: No such file or directory."
342,154 (gdb)

@Dolu1990
Copy link
Member

Hi,

I don't mean GDB, but realy openocd itself, GDB is the debugger, while openocd is the link between GDB and the physical layer connecting the target. (GDB is the client, openocd is the server)

@acillatems
Copy link

acillatems commented Feb 27, 2023

Hi,

Oh my bad. I am on Windows and when I try to run openocd with the right .cfg files I get this error: "unable to open ftdi device with vid 0403, pid 6014, description 'Digilent USB Device', serial '' at bus location ''". I have managed to generate MuraxWithRamInit and programmed that on my device but I can't seem to be able to debug and run the software on eclipse and therefore on to my device. I also checked that the vid and pid are correct in respect to my device.

@Dolu1990
Copy link
Member

hmm in the config file, maybe remove the "Digilent USB Device" setting.
can you show what file you are using ?

@acillatems
Copy link

I just now used Zadig tool to change the driver to WinUSB and that worked for that error. But now I have something else. I am using the digilent_tag_hs3.cfg with added "adapter speed 6000" and xilinx-xc7.cfg. The warning I get to openocd is "gdb services need one or more targets defined". The same localhost:3333: Connection timed out also still persists. My chip id is in the list provided in xilinx-xc7.cfg.

@acillatems
Copy link

I assume the problem is because I am not using the openocd_riscv. The problem with that is that I don't really know how to build that on windows easily.

@Dolu1990
Copy link
Member

Dolu1990 commented Mar 1, 2023

Ahhh right, you realy realy need https://github.com/SpinalHDL/openocd_riscv
To compile openocd on windows, you need something like mingw, check on google, there is likely many people which did it that way :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants