Problem when debugging in GDB Segger J-link debugging using XMC4800

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User15012
Level 1
Level 1
Hello.. I'm using XMC4800 EtherCAT relax kit. I tried to debug in GDB Segger Jlink debugging but I got following errors.
JLinkGDBServerCL.exe
arm-none-eabi-gdb
semihosting and SWU
In console I got "Segger J-link GDB server v6.00d terminal output channel closed by the GDb server". So I couldn't debug in that mode.
But when I debugged in GDB microE debugging it worked fine. But I want to use GDB Segger J link debugging because in every documents related to XMC they have used the same. Please help me to solve this issue.
0 Likes
2 Replies
User14799
Level 2
Level 2
First like received
Is the Project building correctly? Try to delete the Segger Configuration, then Build the Project and then add the Segger configuration again.
0 Likes
User15012
Level 1
Level 1
Thanks for your reply @Tobi. Now it is working. Problem was with the debugger configuration settings. I had checked the check box "Pre-run / Restart". After unchecking the check box the problem got solved.

Thank You...
0 Likes