[openocd:tickets] Re: #429 How to Select Daisy Chain Chip Devices

2024-04-12 Thread Tommy Murphy
> **openocd 0.10.0 log** 0.10.0 is very old and there have been significant development changes to its implementation since then. You should probably consider using a more recent build of OpenOCD either from your distro's software repositories or manually built from the latest OpenOCD 0.12.0+

Re: [openocd:tickets] #429 How to Select Daisy Chain Chip Devices

2024-04-12 Thread Tommy Murphy
> **openocd 0.10.0 log** 0.10.0 is very old and there have been significant development changes to its implementation since then. You should probably consider using a more recent build of OpenOCD either from your distro's software repositories or manually built from the latest OpenOCD 0.12.0+

Re: rtt setup handler fails on macos

2024-04-01 Thread Tommy Murphy
FWIW... According to this: * https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/ > Supported by ARM Cortex-A/R/M, RISC-V and Renesas RX Even though they initially say: > SEGGER RTT can be used with any J-Link model and any supported target > processor

Re: OpenOCD remote_bitbang protocol issue: SWD and sleep commands are incompatible

2024-03-30 Thread Tommy Murphy
Just to clarify - I can't see any relevant patch here that addresses the 'd' packet duplication/clash: * https://review.openocd.org/q/bitbang+sleep I can see the patch that introduced the problem though: * https://review.openocd.org/c/openocd/+/7472

Re: OpenOCD remote_bitbang protocol issue: SWD and sleep commands are incompatible

2024-03-30 Thread Tommy Murphy
This issue was previously identified here: * https://sourceforge.net/p/openocd/mailman/openocd-devel/thread/670d28d2-75a1-45ec-afe5-541415701d7a%40codasip.com/#msg58723494 But I can't see that any patch was ever submitted to fix the issue - e.g. by changing to Z and z for millisecond and

Re: SAM RH707 Support

2024-02-18 Thread Tommy Murphy
> Gerrit being the place for the PR (if such thing) ? https://sourceforge.net/p/openocd/code/ci/master/tree/HACKING > (is the RTIC channel on Element the right place to discuss this as most of > you guys pop-up over there ?) https://openocd.org/pages/irc.html

[openocd:tickets] Re: #421 OpenOCD v12 - STLink-v3Minie & STM32 f334 Not Working

2024-01-30 Thread Tommy Murphy
You haven't described the nature of the failure or provided a verbose `openocd -d3` log to help with analysis. --- **[tickets:#421] OpenOCD v12 - STLink-v3Minie & STM32 f334 Not Working** **Status:** new **Milestone:** 0.10.0 **Labels:** bug v12.0 **Created:** Tue Jan 30, 2024 12:46 AM UTC

Re: [openocd:tickets] #421 OpenOCD v12 - STLink-v3Minie & STM32 f334 Not Working

2024-01-30 Thread Tommy Murphy
You haven't described the nature of the failure or provided a verbose `openocd -d3` log to help with analysis.

Re: How to support ADI (Arm Debug Interface) v5 in riscv?

2024-01-28 Thread Tommy Murphy
> I haven't check if the RISC-V fork already has merged a JTAG-AP > implementation. FWIW, I'm pretty sure that it hasn't. * https://github.com/search?q=repo%3Ariscv%2Friscv-openocd%20jtag-ap=code * https://github.com/search?q=repo%3Ariscv%2Friscv-openocd%20jtag_ap=code *

Re: Character conflict in the remote-bitbnag protocol

2024-01-15 Thread Tommy Murphy
How about: Z - Sleep for 1 millisecond z - Sleep for 1 microsecond as in "Zz" for sleeping/snoring? :⁠-⁠) https://www.grammarly.com/blog/zzz-meaning/

Re: Character conflict in the remote-bitbnag protocol

2024-01-13 Thread Tommy Murphy
> Tommy, thanks for the alert. Just to clarify, it was Marek who flagged the issue. I just linked to the documentation for the conflicting 'd' requests to give some additional context. :⁠-⁠)

Re: Character conflict in the remote-bitbnag protocol

2024-01-12 Thread Tommy Murphy
Just for context - the description of the two 'd' remote bitbang "packets": * SWD write 0 0: https://github.com/openocd-org/openocd/blob/44e02e1f49cc09703cb3b4088d0c1c4f9e2d9c87/doc/manual/jtag/drivers/remote_bitbang.txt#L70 * Sleep for 1 microsecond:

[openocd:tickets] Re: #378 SWD support for RISCV artchitecture

2024-01-10 Thread Tommy Murphy
> I have came across custom SOCs where there is a single ARM Coresight DAP and > a riscv processor connected on APB bus on a particular APB port. Do you happen to mean the WCH CH32VXXX MCUs by any chance? If so then maybe this is of relevance? *

Re: OpenOCD review process?

2023-12-17 Thread Tommy Murphy
What's the context here? This, perhaps? * https://github.com/openocd-org/openocd/blob/master/HACKING

Re: SRST inconsistency between multiple adapters

2023-12-07 Thread Tommy Murphy
> How can I implement an SRST procedure of let’s say 10mS assert Using the `adapter assert/deassert` and `sleep` commands maybe? * https://openocd.org/doc/html/General-Commands.html#:~:text=Command%3A%20adapter%20assert%20%5Bsignal,%5Bsignal%20%5Bassert%7Cdeassert%20signal%5D%5D *

Re: QCA IPQ8065

2023-10-28 Thread Tommy Murphy
I wonder if there's anything useful in this (admittedly old) thread about the IPQ8064? https://sourceforge.net/p/openocd/mailman/openocd-devel/thread/0e021734-0b7a-0cfa-8dc5-a810bb8c4...@suse.de/ Bear in mind that some aspects of OpenOCD (e.g. script command names etc.) may have changed since

Re: INSTALL file missing on github

2023-10-28 Thread Tommy Murphy
I presume that it should refer to the HACKING file and maybe the INSTALL file used to exist but was removed/renamed at some stage? https://sourceforge.net/p/openocd/code/ci/master/tree/HACKING

Re: QCA IPQ8065

2023-10-28 Thread Tommy Murphy
Might be worth posting a verbose `openocd -d3` log?

Re: APM32F0 support

2023-10-25 Thread Tommy Murphy
> Unfortunately, the patch was not accepted. I don't know why exactly It's explained in the review comment from Tomas Vanek: Thanks for the patch. Unfortunately the flash driver is a copy of stm32 original with a couple of changes. We cannot accept such huge duplicity of code. Imagine we would

Re: APM32F0 support

2023-10-17 Thread Tommy Murphy
Not sure if anybody mentioned this patch already just in case it's relevant here? https://sourceforge.net/p/openocd/mailman/message/37753998/

Re: APM32F0 support

2023-10-15 Thread Tommy Murphy
> Great! But where can I find the ID for the MCU? How do I change it in the > config file? What happens if you try autoprobing? See section 10.7 - Autoprobing of the OpenOCD User's Guide: https://openocd.org/pages/documentation.html Once you know the IDCODE for the APM32F0 you can try making a

Re: What exactly does GDB RUN do?

2023-09-01 Thread Tommy Murphy
> the OpenOCD documentation doesn’t ever actually explain what it does. Why would the OpenOCD documentation cover what's already explained in the gdb documentation? * https://ftp.gnu.org/old-gnu/Manuals/gdb/html_chapter/gdb_5.html#SEC18 To see what it does in the context of a remote GDB server

[openocd:tickets] #413 Issues with OpenOCD Gerrit Bitbucket/GitHub Oath2 registration

2023-08-17 Thread Tommy Murphy
--- **[tickets:#413] Issues with OpenOCD Gerrit Bitbucket/GitHub Oath2 registration** **Status:** new **Milestone:** 0.11.0 **Created:** Thu Aug 17, 2023 10:32 AM UTC by Tommy Murphy **Last Updated:** Thu Aug 17, 2023 10:32 AM UTC **Owner:** nobody As far as I can see there seem

[openocd:tickets] Re: #412 Add "xmc xm25qh32c" spi flash id

2023-08-16 Thread Tommy Murphy
Has to be done via Gerrit. * https://github.com/openocd-org/openocd > Official OpenOCD Read-Only Mirror (no pull requests) --- **[tickets:#412] Add "xmc xm25qh32c" spi flash id** **Status:** new **Milestone:** 0.11.0 **Created:** Wed Aug 16, 2023 06:45 AM UTC by eZioPan **Last Updated:** Wed

[openocd:tickets] Re: #412 Add "xmc xm25qh32c" spi flash id

2023-08-16 Thread Tommy Murphy
Can't you submit/propose a patch yourself? * https://github.com/openocd-org/openocd/blob/master/HACKING --- **[tickets:#412] Add "xmc xm25qh32c" spi flash id** **Status:** new **Milestone:** 0.11.0 **Created:** Wed Aug 16, 2023 06:45 AM UTC by eZioPan **Last Updated:** Wed Aug 16, 2023 12:00

Re: STM32H7x5 M4 Core Debug Issues

2023-08-11 Thread Tommy Murphy
Have you tried using the ST fork of OpenOCD? https://github.com/sysprogs/openocd-st/ Is this of any use? https://visualgdb.com/tutorials/arm/stm32/multicore/startup/

Re: semihosting unexpected breakpoint not acknowledged

2023-08-11 Thread Tommy Murphy
> Do you have a link? This perhaps? https://community.st.com/t5/stm32-mcu-products/stm32f746-cortex-m7-silicon-bug-singlestep-lands-in-interrupt/m-p/357481

[openocd:tickets] #411 Configuration summary doesn't list "Linux GPIO bitbang through libgpiod" when enabled

2023-08-09 Thread Tommy Murphy
--- **[tickets:#411] Configuration summary doesn't list "Linux GPIO bitbang through libgpiod" when enabled** **Status:** new **Milestone:** 0.11.0 **Created:** Wed Aug 09, 2023 04:06 PM UTC by Tommy Murphy **Last Updated:** Wed Aug 09, 2023 04:06 PM UTC **Owner:** nobody Minor is

[openocd:tickets] Re: #407 Error by connecting to the target via ICE (tlsr9518fd80d kit)

2023-08-03 Thread Tommy Murphy
The RISC-V OpenOCD fork is under constant development/refinement. You really need to build from the latest sources to get the latest updates. You could try, say, the xPack binary builds but they will still usually lag behind the bleeding edge RISC-V fork repo sources. *

Re: proposal: automatically resume rogue breakpoints

2023-07-26 Thread Tommy Murphy
Hi Liviu - could you perhaps clarify - maybe in pseudo code - what you mean by a "rogue breakpoint"? The exact nature of what you mean by this is still unclear to me. From: Liviu Ionescu Sent: Wednesday, July 26, 2023 6:47:54 AM To: Christopher Head Cc:

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-25 Thread Tommy Murphy
ped Sent: Tuesday 25 July 2023 20:09 To: Tommy Murphy ; mich...@schwingen.org ; Paul Fertser ; dietmar@outlook.com ; openocd-devel@lists.sourceforge.net Subject: Re: Olimex ARM-USB-OCD-H Driver Issue Understood, thank you. I'm now at a point where I can interact with the SOC and write to its mem

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-25 Thread Tommy Murphy
Please attach/post logs rather than screenshots as not everybody can read the latter easily. I also can't see your post on the mailing list archive so it may have been blocked because of the images.

[openocd:tickets] #398 Status of STM fork and adding support for new STM32 silicon

2023-07-23 Thread Tommy Murphy
> I am also referring to an open change set here: > https://review.openocd.org/c/openocd/+/7694 Maybe if you post review feedback on that change set it might help? As far as I can see nobody has reviewed it so that may be one reason why it's lying dormant. --- **[tickets:#398] Status of STM

[openocd:tickets] Re: #398 Status of STM fork and adding support for new STM32 silicon

2023-07-23 Thread Tommy Murphy
OpenOCD is open-source so anybody is free to submit changes for consideration and inclusion. Including any changes in the STM fork - or any other fork. Of course, it would be nice if STM would do this themselves (and maybe they do from time to time?) but it's open to anybody else, in particular

Re: semihosting unexpected breakpoint not acknowledged

2023-07-21 Thread Tommy Murphy
> I might be wrong, but as far as I can tell, the ST-Link GDB server does not > implement semihosting. I presumed that Tomas was referring to the earlier minimal self-contained test that didn't use semihosting? This whole thread is getting a bit confusing in my opinion. Why not run the

Re: semihosting unexpected breakpoint not acknowledged

2023-07-21 Thread Tommy Murphy
> Can this be implemented in OpenOCD? Was it clearly ascertained earlier that this cannot be done via a Tcl script debug-halted (or similar - I think that there was another handler that was more relevant but I can't seem to find it in the user manual?) event handler? That would be preferable

Re: semihosting unexpected breakpoint not acknowledged

2023-07-21 Thread Tommy Murphy
> But later comparisons of OpenOCD runs of my simple test code with J-Link and ST-link GDB servers suggested that J-link and ST-link GDB servers keep interrupts masked. > Your last test shows it's not as easy as that, they implement some fiddling > with C_MASKINTS. Perhaps they unmask interrupts

Re: semihosting unexpected breakpoint not acknowledged

2023-07-20 Thread Tommy Murphy
> I rechecked the command and run a similar one myself. > You probably missed the message > "target must be stopped for "maskisr" command" > and cut it out from the mailed part of the log as well. This is why attaching a full and unmodified `openocd -d3` verbose log is so important when

Re: semihosting unexpected breakpoint not acknowledged

2023-07-17 Thread Tommy Murphy
Hi Liviu I'm a bit confused by this: > With the OpenOCD that comes within CubeIDE, 'maskisr on' prevents the PendSV > to fire, execution stops only on the BRK and pendsv_cnt remains 0. > > With 'maskisr auto' the behaviour is the initial one, each run has a rogue > break and pendsv_cnt

Re: semihosting unexpected breakpoint not acknowledged

2023-07-16 Thread Tommy Murphy
> With J-Link and ST-LINK GDB server, the counter does not go past 1, so it > looks like the debuggers indeed mask interrupts Does OpenOCD with `cortex_m maskisr on` (or `auto`?) give the same results? I know that you tried it before but in a different test scenario so maybe it's worth trying

Re: semihosting unexpected breakpoint not acknowledged

2023-07-15 Thread Tommy Murphy
Thanks for checking Tomas. Perhaps the issue is not related to the dual issue nature of the CPU after all. Any Arm or STM people reading who might want to chip in perhaps? ;-)

Re: semihosting unexpected breakpoint not acknowledged

2023-07-15 Thread Tommy Murphy
> Maybe set it to 0x3F and see if that makes any difference? Sorry, 0x1F. :⁠-⁠)

Re: semihosting unexpected breakpoint not acknowledged

2023-07-15 Thread Tommy Murphy
Thanks Tomas. I wonder if playing with ACTLR[20:16] aka DISDI has any impact on this test? I don't think that dual issue can be completely disabled in case it's a factor here? Maybe set it to 0x3F and see if that makes any difference?

Re: semihosting unexpected breakpoint not acknowledged

2023-07-14 Thread Tommy Murphy
> The code reliably replicating the issue on STM32F767 Hi Tomas - that's very interesting and presumably something that Liviu might try on his target? Can you clarify the rXpY version of your target please? Thanks.

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-14 Thread Tommy Murphy
Also, you said that the target device is a Microchip KSZ8695X, but what is the board or is it some custom board? If it's a custom board then how was the debug connection verified as working? From: Tommy Murphy Sent: Friday, July 14, 2023 5:02:01 PM To: Abe

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-14 Thread Tommy Murphy
What happens when you simply do the following - using the Olimex configuration script already bundled with OpenOCD and not any custom scripts that you have created yourself? `openocd -f interface/ftdi/olimex-arm-usb-ocd-h.cfg`

Re: semihosting unexpected breakpoint not acknowledged

2023-07-14 Thread Tommy Murphy
> Not 'debug-halted' but 'halted' (the 'debug-halted' event is issued at the > end of a target algo, we have to fix the doc) If breakpoints can be ignored/resumed automatically using this event handler mechanism then, in my opinion, this arguably renders moot the suggestion of adding a flag

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-13 Thread Tommy Murphy
> I tried unplugging the cable from the target completely and running again, > and got the same error. That makes sense since TDO on the Olimex will most likely be pulled or floating high by default so it'll be read as 1 when disconnected. The fact that it's reading high when connected is the

Re: semihosting unexpected breakpoint not acknowledged

2023-07-13 Thread Tommy Murphy
> and I thought that perhaps OpenOCD can do it. Was I too optimistic? To be fair, there is no clear evidence so far that the problem that you're hitting here - with the SysTick handler stopping as if there was a breakpoint - is the fault of OpenOCD and not, perhaps, a bug in the target

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-13 Thread Tommy Murphy
Are you absolutely sure that the debugger connector is orientated correctly with pin 1's matching?

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-13 Thread Tommy Murphy
ent: Thursday, July 13, 2023 9:50:25 PM To: Tommy Murphy ; openocd-devel@lists.sourceforge.net ; dietmar@outlook.com ; fercer...@gmail.com Subject: Re: Olimex ARM-USB-OCD-H Driver Issue Thank you all for your input. I've downloaded the xPack version and updated my drivers (hopefully correctly).

Re: semihosting unexpected breakpoint not acknowledged

2023-07-13 Thread Tommy Murphy
>> BTW combining semihosting with interrupts is not a good practice anyway. >> Except some basic tests the interrupts are unusable due >> to giant latencies caused by debug halts. > Hmmm... Can you be more specific on this? What halts do you mean? I > definitely do not set any breakpoints in my

Re: semihosting unexpected breakpoint not acknowledged

2023-07-13 Thread Tommy Murphy
> so IMO there is nothing like "standalone" mode. Even if all ports (GDB, Tcl, telnet) are disabled (and there is no pipe connection from GDB?) and the only commands used are passed from the OpenOCD command line directly or via scripts? Wouldn't that be a sort of "standalone" mode?

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-13 Thread Tommy Murphy
Zadig 2.5 is also outdated. I would use the latest, 2.8. And, as mentioned earlier, a much more up to date version of OpenOCD. Note that if you're writing you own scripts then some commands may differ with a later OpenOCD - e.g. `ftdi vid_pid` rather than the legacy `ftdi_vid_pid` command

Re: Olimex ARM-USB-OCD-H Driver Issue

2023-07-13 Thread Tommy Murphy
> Please use current version of OpenOCD, not something from year 2015. I'd second that! If you can't build it yourself or find another binary distribution then you could try the xPack version: * https://xpack.github.io/dev-tools/openocd/ * https://xpack.github.io/dev-tools/openocd/releases/

[openocd:tickets] Re: #408 No support for generic SPI flash

2023-07-12 Thread Tommy Murphy
> Excuses that someone else seeing the error in a less confusing situation may > have an easier time figuring out what to do don't do anything to fix the > problem. I'm not sure who/what you're referring to, but all I and others offered here are tips on understanding the issue and I think

Re: semihosting unexpected breakpoint not acknowledged

2023-07-11 Thread Tommy Murphy
> Couldn't it be related to the MASKINTS erratum of Cortex-M7 r0p1 ... Liviu - can you clarify the revision of your target Cortex-M7? If it's not r0p2 or later then presumably this erratum does not apply? > It could be interesting to test with -c 'init;cortex_m maskisr on' And if that does

Re: semihosting unexpected breakpoint not acknowledged

2023-07-11 Thread Tommy Murphy
> Do you know how to check if there was a HW breakpoint set? I guess there are > some registers in the debug logic which store these addresses. can we dump > these registers? The FP_COMPn registers? https://developer.arm.com/documentation/ddi0489/f/debug/about-the-fpb/fpb-programmers-model

[openocd:tickets] Re: #408 No support for generic SPI flash

2023-07-10 Thread Tommy Murphy
> If you really want to keep the current behavior, it would at least be good to > point the developer to build OpenOCD from source and add a line to the file > `src/flash/nor/spi.c` If you run OpenOCD in verbose mode (`openocd -d3`) doesn't the log output flag that file at the point at which

[openocd:tickets] #408 No support for generic SPI flash

2023-07-08 Thread Tommy Murphy
FWIW OpenOCD uses its static list of flash ids and characteristics to identify the target flash device here - and reports the "unknown device" message if it can't: * https://github.com/openocd-org/openocd/blob/56fd04832abc0ebadc21ee6127be4be9c7b46e15/src/flash/nor/jtagspi.c#L377 ---

[openocd:tickets] #407 Error by connecting to the target via ICE (tlsr9518fd80d kit)

2023-07-06 Thread Tommy Murphy
You might want to attach a verbose (`openocd -d3`) log. --- **[tickets:#407] Error by connecting to the target via ICE (tlsr9518fd80d kit)** **Status:** new **Milestone:** 0.10.0 **Created:** Thu Jul 06, 2023 08:47 AM UTC by Majd Abdullah **Last Updated:** Thu Jul 06, 2023 08:47 AM UTC

[openocd:tickets] Re: #406 "Failed to read memory" leads to 0 value instead of error message in gdb

2023-07-03 Thread Tommy Murphy
> My feeling is that having not history whatsoever with the project is a good > way to got shot down early with such a patch. Well, not proposing a patch and expecting someone else to do the spade work is probably a good way for nothing to change. --- **[tickets:#406] "Failed to read

[openocd:tickets] Re: #406 "Failed to read memory" leads to 0 value instead of error message in gdb

2023-07-03 Thread Tommy Murphy
Maybe submit a strawman patch and see what discussion ensues in the review? Maybe it's still an issue on the GDB side for targets that you're not using? I notice that no bundled Tcl scripts enable the option which may or may not be relevant. I can't find much detail about it, its provenance etc.

[openocd:tickets] Re: #406 "Failed to read memory" leads to 0 value instead of error message in gdb

2023-07-02 Thread Tommy Murphy
> I think that this should be the default state Based on the comments here that may not be the most judicious approach: * https://github.com/openocd-org/openocd/blob/56fd04832abc0ebadc21ee6127be4be9c7b46e15/src/server/gdb_server.c#L1518 /* TODO : Here we have to lie and send

[openocd:tickets] #405 arm semihosting_cmdline documentation is incorrect

2023-06-28 Thread Tommy Murphy
--- **[tickets:#405] arm semihosting_cmdline documentation is incorrect** **Status:** new **Milestone:** 0.11.0 **Created:** Wed Jun 28, 2023 08:35 PM UTC by Tommy Murphy **Last Updated:** Wed Jun 28, 2023 08:35 PM UTC **Owner:** nobody The documentation for `arm semihosting_cmdline

[openocd:tickets] #404 src/jtag/interface.h adapter_driver::reset(int srst, int trst) args are in wrong order

2023-06-28 Thread Tommy Murphy
trst) args are in wrong order** **Status:** new **Milestone:** 0.11.0 **Created:** Wed Jun 28, 2023 08:01 AM UTC by Tommy Murphy **Last Updated:** Wed Jun 28, 2023 08:01 AM UTC **Owner:** nobody `src/jtag/interface.h adapter_driver::reset(int srst, int trst)` args are in wrong order with respect

[openocd:tickets] #404 src/jtag/interface.h adapter_driver::reset(int srst, int trst) args are in wrong order

2023-06-28 Thread Tommy Murphy
--- **[tickets:#404] src/jtag/interface.h adapter_driver::reset(int srst, int trst) args are in wrong order** **Status:** new **Milestone:** 0.11.0 **Created:** Wed Jun 28, 2023 08:01 AM UTC by Tommy Murphy **Last Updated:** Wed Jun 28, 2023 08:01 AM UTC **Owner:** nobody `src/jtag

[openocd:tickets] #403 `program` script/command and documenation not consistent?

2023-06-27 Thread Tommy Murphy
--- **[tickets:#403] `program` script/command and documenation not consistent?** **Status:** new **Milestone:** 0.11.0 **Created:** Tue Jun 27, 2023 08:41 PM UTC by Tommy Murphy **Last Updated:** Tue Jun 27, 2023 08:41 PM UTC **Owner:** nobody As far as I can see, the implementation

Re: Add zlib dependency to OpenOCD?

2023-06-23 Thread Tommy Murphy
> zlib is a basic library, present in every system. Maybe every Linux system but what about, say, Windows, Mac, FreeBSD etc.? > Also Jimtcl has optional dependency from zlib I presume that option is not "enabled" for OpenOCD - by default or at all? When I build openocd I get this - I presume

Re: Flashing nRF with stlink V3

2023-06-21 Thread Tommy Murphy
> Just tried what's available on mainline You mean you built OpenOCD from the repo master branch? https://github.com/openocd-org/openocd Or you got the latest from your OS's software repo? The latter may not be the very latest. > and it doesn't seem to be supported there. What happens?

[openocd:tickets] Re: #398 Status of STM fork and adding support for new STM32 silicon

2023-06-08 Thread Tommy Murphy
Thanks - these seem to be the key errors in the verbose log file: ``` Line 357: Error: 308 224554 arm_adi_v5.c:570 mem_ap_read(): Failed to read memory at 0x40015800 Line 370: Error: 321 224559 arm_adi_v5.c:570 mem_ap_read(): Failed to read memory at 0x40015800 Line 377: Error:

[openocd:tickets] Re: #398 Status of STM fork and adding support for new STM32 silicon

2023-06-04 Thread Tommy Murphy
You should post (attach) a verbose OpenOCD log for the failed attempt to debug to assist with investigation. Use `openocd -d3 ...` to get the verbose log. --- **[tickets:#398] Status of STM fork and adding support for new STM32 silicon** **Status:** new **Milestone:** 0.11.0 **Created:** Wed

[openocd:tickets] Re: #398 Status of STM fork and adding support for new STM32 silicon

2023-05-31 Thread Tommy Murphy
> The current script does not work, for starters the STM32WBA has different > JTAG/SWD IDs. Have you tried adding the relevant STM32WBA ID(s) to the `stm32wbx.cfg` script? (I presume that the 'x' in the name is a placeholder so that script should - eventually, if not right now - also support

[openocd:tickets] Re: #398 Status of STM fork and adding support for new STM32 silicon

2023-05-31 Thread Tommy Murphy
> 1. What is the status of that fork? You probably need to ask STM that question? > 2. I am struggling with creating a working target config file for the > STM32WBA chip. What's wrong with the target script that's in the mainline OpenOCD?

Re: [openocd:tickets] #398 Status of STM fork and adding support for new STM32 silicon

2023-05-31 Thread Tommy Murphy
> 1. What is the status of that fork? You probably need to ask STM that question? > 2. I am struggling with creating a working target config file for the > STM32WBA chip. What's wrong with the target script that's in the mainline OpenOCD?

Re: OpenOCD 0.12.0 regression

2023-04-20 Thread Tommy Murphy
It's easy to build a custom version of OpenOCD (particularly on Linux) with additional printf logging in the relevant files to shed more light on such an issue when the built-in logging isn't sufficient. From: kristof.mul...@telenet.be Sent: Thursday, April 20,

Re: Making historical committed code/patches comply with latest checkpatch

2023-04-07 Thread Tommy Murphy
Hi Antonio Thanks a lot for the quick reply. > Can you use Checkpatch-ignore in the fork? Maybe that would be a more pragmatic option alright. Let me check with Tim Newsome who leads the work on the RISC-V OpenOCD fork. Unless he's reading this and wants to pitch in himself? :-) Thanks again.

Making historical committed code/patches comply with latest checkpatch

2023-04-07 Thread Tommy Murphy
Hi there As many of you probably know, RISC-V OpenOCD development continues to be done on this fork: * https://github.com/riscv/riscv-openocd Periodically, changes here are upstreamed to the "main" OpenOCD project and/or patches upstream are pulled down to more closely sync/align the two

Re: Intended behavior of resume on address for SMP target

2023-04-05 Thread Tommy Murphy
> What should be done if some targets have already been resumed (e.g., selected > hart has been stopped because of a software breakpoint, but others in the SMP > group continue to run)? When using GDB (a/the common case, I guess) then it depends on the scheduler locking mode(s):

Re: Intended behavior of resume on address for SMP target

2023-03-28 Thread Tommy Murphy
> As for address, I don't see that it would ever make sense for all cores to > resume at the same address. There are cases where it could make sense. E.g. common startup code executed by all cores (aka RISC-V harts). In fact, a lot of multi-hart RISC-V implementions do exactly that at startup

Re: Intended behavior of resume on address for SMP target

2023-03-28 Thread Tommy Murphy
FWIW, my reading of the OpenOCD docs is that where SMP mode is enabled then resume (and halt) take effect on all cores/threads in the SMP group. That seems to be the case wherever the two are mentioned together in the user documentation. Whether or not that is appropriate in all cases,

[openocd:tickets] Re: #382 errorin target/stm32h7x.cfg

2023-03-26 Thread Tommy Murphy
Seems to be fixed now? https://github.com/openocd-org/openocd/blob/b6b4f9d46a48aadc1de6bb5152ff4913661c9059/tcl/target/stm32h7x.cfg#L213 although I haven't been able to identify the specific commit/patch that effected this change... --- ** [tickets:#382] errorin target/stm32h7x.cfg**

[openocd:tickets] #387 [OpenOCD JTATG] Invalid ACK (0) in DAP response

2023-03-26 Thread Tommy Murphy
You should probably attach a full verbose -d3 log for analysis. --- ** [tickets:#387] [OpenOCD JTATG] Invalid ACK (0) in DAP response** **Status:** new **Milestone:** 0.10.0 **Labels:** jtag **Created:** Tue Mar 21, 2023 01:20 PM UTC by Ashi Gupta **Last Updated:** Tue Mar 21, 2023 01:20 PM

[openocd:tickets] Re: #388 RESET/WDOG Loop Lockup with Kinetis MK22

2023-03-26 Thread Tommy Murphy
You might want to explain how you built OpenOCD such that it ended up not being able to find scripts in the usual places? --- ** [tickets:#388] RESET/WDOG Loop Lockup with Kinetis MK22** **Status:** new **Milestone:** 0.11.0 **Created:** Wed Mar 22, 2023 12:17 AM UTC by Mike Aoun **Last

[openocd:tickets] Re: #382 errorin target/stm32h7x.cfg

2023-02-09 Thread Tommy Murphy
You seem to be using an old OpenOCD. Line 202 of that script is different now. https://github.com/openocd-org/openocd/blob/1998b1e5a89e57b2d1109bc36d6af916106103ff/tcl/target/stm32h7x.cfg#L202 You should try the latest 0.12.0 release or even a build from the head of the source repository.

Re: [openocd:tickets] #382 errorin target/stm32h7x.cfg

2023-02-09 Thread Tommy Murphy
You seem to be using an old OpenOCD. Line 202 of that script is different now. https://github.com/openocd-org/openocd/blob/1998b1e5a89e57b2d1109bc36d6af916106103ff/tcl/target/stm32h7x.cfg#L202 You should try the latest 0.12.0 release or even a build from the head of the source repository.

[openocd:tickets] #380 ar71xx.cfg

2023-01-24 Thread Tommy Murphy
Can you explain the rationale for this suggested change? The existing `reset-halt-post` event handler has been in place since the original version of this script in 2009 so it seems strange that it would prove problematic at this stage? *

[openocd:tickets] Re: #378 SWD support for RISCV artchitecture

2022-12-29 Thread Tommy Murphy
FWIW, Some Microchip FPGAs/SoC FPGAs can support hard and/or soft IP Cortex-M and RISC-V CPUs. But my recollection (from working for Microchip in the past) is that neither supported SWD. Certainly there is no SWD debug access to the RISC-V. --- ** [tickets:#378] SWD support for RISCV

[openocd:tickets] Re: #379 Create custom jtag driver in openocd

2022-12-29 Thread Tommy Murphy
Apologies Paul - if I had been aware that it had been asked already, and potentially involved closed source/GPL breaches, I would not have answered here. --- ** [tickets:#379] Create custom jtag driver in openocd ** **Status:** new **Milestone:** 0.10.0 **Labels:** openocd **Created:** Thu

[openocd:tickets] #379 Create custom jtag driver in openocd

2022-12-29 Thread Tommy Murphy
In my en my eIxperience, there's not much/any documentation about this but it's relatively straightforward to look at existing debug interface drivers and follow those as a guide: https://github.com/openocd-org/openocd/tree/master/src/jtag The main task is to implement the public methods for

[openocd:tickets] Re: #378 SWD support for RISCV artchitecture

2022-12-29 Thread Tommy Murphy
That seems to be about using ESP32 as an SWD debug interface. Not about debugging ESP32 using SWD. And nothing there is obviously about the RISC-V based ESP32-C3. As such, I don't see its relevance in this thread? --- ** [tickets:#378] SWD support for RISCV artchitecture** **Status:** new

[openocd:tickets] Re: #378 SWD support for RISCV artchitecture

2022-12-28 Thread Tommy Murphy
You mean ESP32-C3? I don't think so. As far as I can see it only has JTAG. https://www.espressif.com/en/products/socs/esp32-c3 --- ** [tickets:#378] SWD support for RISCV artchitecture** **Status:** new **Milestone:** 0.10.0 **Labels:** openocd **Created:** Wed Dec 28, 2022 07:00 AM UTC by

[openocd:tickets] #378 SWD support for RISCV artchitecture

2022-12-27 Thread Tommy Murphy
You probably want to look at the RISC-V OpenOCD fork for latest RISC-V support. https://github.com/riscv/riscv-openocd Changes there periodically get upstreamed to here (the master OpenOCD project). As far as I know, cJTAG support has been added there. I don't think that SWD support will ever

[openocd:tickets] Re: #376 configure --enable-verbose triggers compilation error in arm-jtag-ew.c & opendous.c

2022-12-17 Thread Tommy Murphy
us.c ** **Status:** new **Milestone:** 0.10.0 **Created:** Sat Dec 17, 2022 06:00 PM UTC by Tommy Murphy **Last Updated:** Sat Dec 17, 2022 10:44 PM UTC **Owner:** nobody When `--enable-verbose` is passed to `configure` it enables code conditionally compiled if `_DEBUG_USB_COMMS_` is defined in `src/jt

[openocd:tickets] #376 configure --enable-verbose triggers compilation error in arm-jtag-ew.c & opendous.c

2022-12-17 Thread Tommy Murphy
--- ** [tickets:#376] configure --enable-verbose triggers compilation error in arm-jtag-ew.c & opendous.c ** **Status:** new **Milestone:** 0.10.0 **Created:** Sat Dec 17, 2022 06:00 PM UTC by Tommy Murphy **Last Updated:** Sat Dec 17, 2022 06:00 PM UTC **Owner:** nobody When `--en

Re: Working with OpenOCD using Telnet

2022-12-02 Thread Tommy Murphy
> - I was sure that it is upstream OpenOCD mailing list Sorry. My mistake. You're correct. I'm usually on the RISC-V lists so thought that I was still there! :⁠-⁠D

Re: Working with OpenOCD using Telnet

2022-12-02 Thread Tommy Murphy
Apropos of a question/comment from you about this yesterday I was having a root around and got the impression that the telnet interface may have no awareness of the OpenOCD SMP support. Only gdb does. I'm still not sure but it would seem to tally with what you're seeing? Might be worth asking

Re: mips_m4k watchpoint issue.

2022-12-01 Thread Tommy Murphy
Did you try patching it locally like that and testing it? Did it work as expected for setting and unsetting the watchpoint? If so, it might be worth submitting that as a patch/PR via the normal OpenOCD process?

Re: mips_m4k watchpoint issue.

2022-12-01 Thread Tommy Murphy
This PR seems to have changed how watchpoints are set and may be relevant here? https://github.com/openocd-org/openocd/commit/fb43f1ff4e2f0638110ffcc4e63bee8b5361db64#diff-18b6c875f0bfee773f2a5e6e0a100e4d9c641fec9c870d4da22ca0aa957259c8L914 - watchpoint->set = wp_num + 1; + watchpoint->number =

Re: (Без темы)

2022-12-01 Thread Tommy Murphy
> Are you sure? Seems to me that breakpoints are set in each SMP target: Oh - maybe only for hardware breakpoints? My mistake, I think. :⁠-⁠( From: Tommy Murphy Sent: Thursday, December 1, 2022 9:53:42 AM To: Kirill Radkin ; Tim Newsome Cc: openocd-de

  1   2   3   >