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