On Wed, Nov 6, 2019 at 11:56 AM Matthias Stadler < matthias.stad...@medineering.de> wrote:
> Hi Tommy, > > Thank you for your input. I put more informations together, hope it > helps to get a better understanding of the issue. > > My workflow is as follows: > > 1) Start OpenOCD: /opt/openocd/bin/openocd -f board/xmc4800-relax.cfg -d > 2) Attach GDB Debug Session: arm-none-eabi-gdb xmc-test -ex 'target > remote localhost:3333' > 3) Reset and Init MCU: mon reset init > 4) Set Breakpoints: break main / break XMC_GPIO_GetInput > 5) Run the program > 6) Should hit the breakpoints, but does not at main nor at > XMC_GPIO_GetInput. Same program works fine with JlinkGDB Server. > > Attached you find the log files from GDB output and the OpenOCD debug > output. > > According to the log, GDB specifically asks for a software breakpoint which won't work in Flash. It should not do this if it's aware that the address is in flash. Have you not defined a flash bank covering this range? /Andreas
_______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel