Hi, I'm working on a project with the XMC4800 and started debugging the evaluation board XMC4800 Relax Kit v1 with OpenOCD and GDB. Unfortunately breakpoints are ignored, sometimes (randomly) they are hit. Attached you will find the OpenOCD and GDB output log. I fiddled with different SWD clock frequencies, but nothing changed. In the end I tried the JLinkGDBServer and it worked without problems.... so I'm assuming a problem with OpenOCD. Would be great if someone could help and hopefully solve the problem.
If there is still some information missing or if I can assist you in any other way, I am happy to help. Many thanks in advance! Best regards, Matthias
arm-none-eabi-gdb xmc-test -ex 'target remote localhost:3333' GNU gdb (7.10-1ubuntu3+9) 7.10 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from xmc-test...done. Remote debugging using localhost:3333 0x0800034e in XMC_GPIO_GetInput (pin=13 '\r', port=0x48028f00) at /home/matthias.stadler/GIT/robots/vendor/XMC/XMCLib/inc/xmc_gpio.h:337 337 return (((port->IN) >> pin) & 0x1U); (gdb) info breakpoints No breakpoints or watchpoints. (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. 0x0800034e in XMC_GPIO_GetInput (pin=13 '\r', port=0x48028f00) at /home/matthias.stadler/GIT/robots/vendor/XMC/XMCLib/inc/xmc_gpio.h:337 337 return (((port->IN) >> pin) & 0x1U); (gdb) break 337 Breakpoint 1 at 0x800034c: file /home/matthias.stadler/GIT/robots/vendor/XMC/XMCLib/inc/xmc_gpio.h, line 337. (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. main () at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c:60 60 button_edge = true; (gdb) break 60 Breakpoint 2 at 0x800034a: file /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c, line 60. (gdb) c Continuing. Breakpoint 1, main () at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c:50 50 if (!XMC_GPIO_GetInput(P15_13)) (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. main () at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c:60 60 button_edge = true; (gdb) c Continuing. Breakpoint 1, main () at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c:50 50 if (!XMC_GPIO_GetInput(P15_13)) (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. main () at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c:50 50 if (!XMC_GPIO_GetInput(P15_13)) (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. main () at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c:60 60 button_edge = true; (gdb) c Continuing. Breakpoint 1, main () at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c:50 50 if (!XMC_GPIO_GetInput(P15_13)) (gdb) info break Num Type Disp Enb Address What 1 breakpoint keep y 0x0800034c in main at /home/matthias.stadler/GIT/robots/vendor/XMC/XMCLib/inc/xmc_gpio.h:337 breakpoint already hit 3 times 2 breakpoint keep y 0x0800034a in main at /home/matthias.stadler/GIT/robots/prototyping/xmc-test/Sources/main.c:60 (gdb)
/opt/openocd/bin/openocd -f board/xmc4800-relax.cfg :( Open On-Chip Debugger 0.10.0+dev-00730-ge243075 (2019-03-07-13:52) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html cortex_m reset_config sysresetreq adapter speed: 1000 kHz Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : J-Link Lite-XMC4200 Rev.1 compiled Apr 5 2017 11:59:07 Info : Hardware version: 1.00 Info : VTarget = 3.300 V Info : clock speed 1000 kHz Info : SWD DPIDR 0x2ba01477 Info : xmc4800.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections
_______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
