[OpenOCD-devel] [openocd:tickets] #225 Error: The 'jtag configure' command must be used after 'init'.

2019-02-06 Thread Bill Paul via OpenOCD-devel
I can't really confirm if these are the only things that need fixing. I only have a certain number of cases I can check. (I didn't even know there was a second instance of "jtag configure.") So far that one command was the only one that went wrong for me. The failures I ran into were: 1) A Xil

[OpenOCD-devel] [openocd:tickets] #225 Error: The 'jtag configure' command must be used after 'init'.

2019-02-06 Thread Antonio Borneo via OpenOCD-devel
If I did not made mistakes, here is the list of commands that are impacted by commit 877cec20dca6. Now we need to check if any of them has wrong "mode". Please cross check with me Commands with mode = COMMAND_CONFIG src/jtag/hla/hla_transport.c: "hla newdap" src/jtag/tcl.c: "jtag newtap" src/ta

Re: [OpenOCD-devel] adding new interface(TAP): Does riscV support gdb? / target_type->.get_gdb_reg_list() is mandatory but not existing

2019-02-06 Thread Liviu Ionescu
> On 6 Feb 2019, at 23:11, Tim Newsome wrote: > > ... then https://github.com/riscv/riscv-openocd is the place you want. just please be aware that this fork may not run properly for other targets. I tried to merge it into GNU MCU Eclipse OpenOCD, but it affected ARM targets, so I had to re

Re: [OpenOCD-devel] adding new interface(TAP): Does riscV support gdb? / target_type->.get_gdb_reg_list() is mandatory but not existing

2019-02-06 Thread Tim Newsome
The code you're looking for is riscv_get_gdb_reg_list() in src/target/riscv.c. If you are thinking of making RISC-V-specific changes, then https://github.com/riscv/riscv-openocd is the place you want. It has many changes that haven't made it to the OpenOCD mainline yet. Tim On Wed, Feb 6, 2019 at

[OpenOCD-devel] [openocd:tickets] #225 Error: The 'jtag configure' command must be used after 'init'.

2019-02-06 Thread Antonio Borneo via OpenOCD-devel
Actually the error is in src/jtag/tcl.c The right value for the command "jtag configure" should be COMMAND_ANY. Before commit 877cec20dca6 there were no check on the value, so the wrong value passed unnoticed. Our mistake, we merge the commit too quicly, without a complete audit of the commands t

Re: [OpenOCD-devel] adding new interface(TAP): Does riscV support gdb? / target_type->.get_gdb_reg_list() is mandatory but not existing

2019-02-06 Thread Matthias Welwarsky
On Mittwoch, 6. Februar 2019 15:06:33 CET Xen Mann wrote: > We have figured out, that target_type->get_gdb_reg_list() is mandatory for > supporting the gdb connection, see proof (if I'm not wrong) in the end of > the mail. Because my core is a riscV (zeroRiscy) I had a look at the > target/riscv/ri

Re: [OpenOCD-devel] adding new interface(TAP): How does openOCD retrieve the programm counter

2019-02-06 Thread Matthias Welwarsky
On Mittwoch, 30. Januar 2019 11:27:41 CET Xen Mann wrote: > Hey there again! > adding this new interface I wonder, how actually does openOCD retrieve the > information where the program counter(pc) is on the target. At least the > connected client which is stepping through the lines of source code

[OpenOCD-devel] [openocd:tickets] #225 Error: The 'jtag configure' command must be used after 'init'.

2019-02-06 Thread Bill Paul via OpenOCD-devel
--- ** [tickets:#225] Error: The 'jtag configure' command must be used after 'init'.** **Status:** new **Milestone:** 0.9.0 **Created:** Wed Feb 06, 2019 08:19 PM UTC by Bill Paul **Last Updated:** Wed Feb 06, 2019 08:19 PM UTC **Owner:** nobody Checking out the most recent sources from git

Re: [OpenOCD-devel] adding new interface(TAP): Does riscV support gdb? / target_type->.get_gdb_reg_list() is mandatory but not existing

2019-02-06 Thread Tommy Murphy
> Does riscV support a GDB-connction. If yes, how? Yes it does. Why don't you look at the SiFive RISC-V fork of OpenOCD? Otherwise you might be reinventing a wheel that already exists... https://github.com/riscv/riscv-openocd ___ OpenOCD-devel mailin

[OpenOCD-devel] adding new interface(TAP): Does riscV support gdb? / target_type->.get_gdb_reg_list() is mandatory but not existing

2019-02-06 Thread Xen Mann
We have figured out, that target_type->get_gdb_reg_list() is mandatory for supporting the gdb connection, see proof (if I'm not wrong) in the end of the mail. Because my core is a riscV (zeroRiscy) I had a look at the target/riscv/riscv-01x.c. There is no such function pointer in their structure

[OpenOCD-devel] [PATCH]: 3780324 target/riscv: Free registers to avoid memory leak

2019-02-06 Thread gerrit
This is an automated email from Gerrit. Marc Schink (openocd-...@marcschink.de) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4885 -- gerrit commit 378032469b6e4caf4e2c4a05605cbb3a99bde2ee Author: Marc Schink Date: Wed Feb 6 13:43:16 2019 +0100

[OpenOCD-devel] [PATCH]: 9398fad target/riscv-011: Fix memory leak in handle_halt_routine()

2019-02-06 Thread gerrit
This is an automated email from Gerrit. Marc Schink (openocd-...@marcschink.de) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4884 -- gerrit commit 9398fadb075937f4dcc0bb271e5a5d0e362b7997 Author: Marc Schink Date: Wed Feb 6 12:07:10 2019 +0100