Tested on NUCLEO-F401RE (stm32f401re). It has the slowest Fcpu (adapter speed) in the STM32F4 series.
It seems that the original adapter speed for reset-init and reset-start is too high for my board. I've reduced the speed to get rid of the errors. Technically this should work on all other STM32F4 boards as they all have higher Fcpu.
My edited stm32f4x.cfg
I don't have a NUCLEO-F401RE. I tested on a blackpill (STM32F401CC) with an old on-board st-link and no problems at speeds from original config. Just noticed that st-link
reduces the speed substantially. Therefore I reconnect to FT232H based adapter and tested at 12 MHz - flash erase/write/verify works just fine.
Also please be aware that we do not accept patches from mail or bug tracking. See https://openocd.org/doc/doxygen/html/patchguide.html
And also note that
is just an informational message, not error at all!
Hello. I think I ve submit a pull request on that. Let me know if the project accepts.