This ticket can be closed since this was already fixed in https://sourceforge.net/p/openocd/code/ci/a3dc54d2d32919588cd7b8d22552f016cf603a49/
Ok, found the correct solution, just add in stm32f7x.cfg after the main "flash bank" declaration: flash bank vbank0 virtual 0x00200000 0 0 0 $_TARGETNAME $_FLASHNAME
Small mistake, the ITCM bus is at address 0x00200000 and the AXIM bus at address 0x08000000 This does not change anything... I just don't know why it is working with code running from AXIM interface: Why a software (regular) breakpoint can be added if running from AXIM interface And why it is not working with the ITCM interface ?
Regression cannot add breakpoint on STM32F7 with code from ITCM