When trying to run JLinkGDBServerCLExe on Linux I run into an issue when connecting with GDB.
I've started the server with the following arguments:
JLinkGDBServerCLExe -device mcimx6g2 -speed 20000
However when I try to connect with gdb, I get the following error:
(gdb) target remote :2331
Remote debugging using :2331
warning: while parsing target description: XML declaration not well-formed
warning: Could not load XML target description; ignoring
Remote 'g' packet reply is too long (expected 168 bytes, got 308 bytes): 00000000300a90000000001000080000000000000001000000800d02000002020001000000000000000000000000000014000e0264ff91004b2f00007a850000f3010040d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d30100000001000000000000000000000000000014000e02bfa2a87a823250a0212a6e4e13e228a43ef96346bee8237c0384054223ff4f6f8a05d0935cf3086b177d80601e76aa40e34301a164ff91004b2f0000d301000054e1b5cff739a0b2ea9904f61f3303fe41ec290cfabb0b1f
This works fine with 6.44c.
The GDB in use is GNU gdb (GDB) 8.2.1 for the arm-none-eabi platform on Arch Linux.
I've started the server with the following arguments:
JLinkGDBServerCLExe -device mcimx6g2 -speed 20000
However when I try to connect with gdb, I get the following error:
(gdb) target remote :2331
Remote debugging using :2331
warning: while parsing target description: XML declaration not well-formed
warning: Could not load XML target description; ignoring
Remote 'g' packet reply is too long (expected 168 bytes, got 308 bytes): 00000000300a90000000001000080000000000000001000000800d02000002020001000000000000000000000000000014000e0264ff91004b2f00007a850000f3010040d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d3010000d30100000001000000000000000000000000000014000e02bfa2a87a823250a0212a6e4e13e228a43ef96346bee8237c0384054223ff4f6f8a05d0935cf3086b177d80601e76aa40e34301a164ff91004b2f0000d301000054e1b5cff739a0b2ea9904f61f3303fe41ec290cfabb0b1f
This works fine with 6.44c.
The GDB in use is GNU gdb (GDB) 8.2.1 for the arm-none-eabi platform on Arch Linux.