# Cannot debug in Embedded GDB mode

**URL:** <https://forum.sierrawireless.com/t/cannot-debug-in-embedded-gdb-mode/5088>\
**Category:** Development tools\
**Created:** [May 31, 2011, 1:38pm UTC](https://forum.sierrawireless.com/t/cannot-debug-in-embedded-gdb-mode/5088 "2011-05-31T13:38:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pieterm](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@pieterm](https://forum.sierrawireless.com/u/pieterm)\
**Post date:** [May 31, 2011, 1:38pm UTC](https://forum.sierrawireless.com/t/cannot-debug-in-embedded-gdb-mode/5088/1 "2011-05-31T13:38:03Z")

</div>

How does one get Embedded GDB debugging to work?

I cannot debug my application using the Embedded GDB debug method (Can debug in RTE mode):

1. Embedded GDB  
The firmware package running on the SL6087 chip is 7.45. I double-checked this by running the ATI9 command. When I run the project: Debug As Open AT Target application, the debug view is opened, the firmware is downloaded successfully and then the following errors is shown in the console window:  
Sending packet: $qSupported#37…Sending packet: $qSupported#37…Sending packet: $qSupported#37…Sending packet: $qSupported#37…Timed out.  
Timed out.  
Timed out.  
Ignoring packet error, continuing…  
…[some more of the same errors]…  
Malformed response to offset query, timeout

I will attach the log file.

1. RTE mode  
Got this working by following this post:  
[url][Debugging in M2MS: Unresolved breakpoint issue? [SOLVED]](https://forum.sierrawireless.com/t/debugging-in-m2ms-unresolved-breakpoint-issue-solved/2848/11)]

I have successfully installed the com0com 64-bit driver and the following is returned from its list command:  
CNCA0 PortName=COM98  
CNCB0 PortName=COM99

I set a breakpoint.

The active build config is: [RTE]\_MinGW\_Debug  
I run the app using: Debug As \> Open AT RTE application

The RemoteTasks monitor is opened and I press the start button [Also tried to debug by first setting the trace levels and/or reading from target]: It goes into running state.  
There is a exclamation token at my breakpoint: Unresolved breakpoint

There are also a number of warnings in the console window like:  
warning: CSelima::AddFlow(3, 0xb)

Even though the code where the breakpoint is located does run, it never breaks at the set breakpoint.

1. JTAG Debug:  
I do not have a JTAG probe and AT+WDEBUG? returnsL +CME ERROR: 3.  
[Log\_GDB.zip](https://forum.sierrawireless.com/uploads/short-url/jLCeaECP4uXPSuGA6txS2byH4Bc.zip) (1.3 KB)

---

_[View the full topic](https://forum.sierrawireless.com/t/cannot-debug-in-embedded-gdb-mode/5088)._
