Why exactly are you defining the flash banks in a catch block? It looks like this is being triggered twice and causing the errors that you're seeing. The comment doesn't really explain.
- [openocd:tickets] #356 fail to debug a micro:bit v2 applica... Matei Barbu
- Re: [openocd:tickets] #356 fail to debug a micro:bit v... Tommy Murphy
- [openocd:tickets] Re: #356 fail to debug a micro:bit v... Paul Fertser
- [openocd:tickets] #356 fail to debug a micro:bit v2 ap... Matei Barbu
- Re: [openocd:tickets] #356 fail to debug a micro:b... Tommy Murphy
- [openocd:tickets] Re: #356 fail to debug a micro:b... Tommy Murphy
- [openocd:tickets] #356 fail to debug a micro:bit v2 ap... Matei Barbu
- Re: [openocd:tickets] #356 fail to debug a micro:b... Tommy Murphy
- [openocd:tickets] Re: #356 fail to debug a micro:b... Tommy Murphy
- [openocd:tickets] Re: #356 fail to debug a mic... Matei Barbu
- Re: [openocd:tickets] Re: #356 fail to deb... Tommy Murphy
- [openocd:tickets] Re: #356 fail to debug a... Tommy Murphy
- [openocd:tickets] #356 fail to debug a micro:bit v2 ap... Tomas Vanek
- [openocd:tickets] #356 fail to debug a micro:bit v2 ap... Antonio Borneo
- [openocd:tickets] #356 fail to debug a micro:bit v2 ap... Matei Barbu