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 <kristof.mul...@telenet.be>
Sent: Thursday, April 20, 2023 3:16:15 PM
To: Paul Fertser <fercer...@gmail.com>; Liviu Ionescu <i...@livius.net>
Cc: matic <ma...@embeetle.com>; openocd-devel 
<openocd-devel@lists.sourceforge.net>
Subject: Re: OpenOCD 0.12.0 regression

Hi Paul,
Hi Liviu,

Thanks for your responses. We have done all the tests you proposed, to figure 
out if the problem is in the binary, or in OpenOCD itself. Unfortunately, it 
looks like OpenOCD is the problem. I've written down all the test results in a 
post on the ticket:
https://sourceforge.net/p/openocd/tickets/392/

Please let me know what you think.

Kind regards,
Kristof Mulier

----- Oorspronkelijk bericht -----
Van: "Paul Fertser" <fercer...@gmail.com>
Aan: "kristof mulier" <kristof.mul...@telenet.be>
Cc: "Liviu Ionescu" <i...@livius.net>, "openocd-devel" 
<openocd-devel@lists.sourceforge.net>, "matic" <ma...@embeetle.com>
Verzonden: Woensdag 19 april 2023 23:17:14
Onderwerp: Re: OpenOCD 0.12.0 regression

Hello Kristof,

On Wed, Apr 12, 2023 at 02:06:10PM +0200, kristof.mul...@telenet.be wrote:
> I want to report a regression in OpenOCD. OpenOCD 0.12.0 is unable to flash a
> certain .elf file to my NUCLEO-F303K8 board
...
> Info : 125 188 stlink_usb.c:1434 stlink_usb_version(): STLINK V2J25M14 (API 
> v2) VID:PID 0483:374B
...
> Debug: 561 1333 target.c:2410 target_write_buffer(): writing buffer of 12692 
> byte at 0x20000044
> Debug: 562 1335 hla_target.c:616 adapter_write_memory(): adapter_write_memory 
> 0x20000044 4 3173
> Debug: 563 1417 stlink_usb.c:1100 stlink_usb_error_check(): 
> STLINK_SWD_AP_FAULT

I suspect a bug in this version of STLINK firmware (as it's not like
the failing operation is writing to the wrong place or the wrong size,
the target has enough RAM). Have you tried upgrading it to the latest?
Have you tried using stlink-dap.cfg instead?

--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com



Reply via email to