arduino / arduino/ArduinoCore-mbed

ThreadDebug Lib - Unresponsive After Start

Open
#19 34 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
411
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Hello All,

Originally discussed here: [https://github.com/arduino/ArduinoCore-mbed/issues/16](url)

I've tried using the ThreadDebug Library with the Portanta_M7 - at the top of my sketch:

#include

// UartDebugCommInterface debugComm(SERIAL1_TX, SERIAL1_RX, 230400);
// ThreadDebug threadDebug(&debugComm, DEBUG_BREAK_IN_SETUP);

UsbDebugCommInterface debugComm(&SerialUSB);
ThreadDebug threadDebug(&debugComm, DEBUG_BREAK_IN_SETUP);

---
The debug console window prints:
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from c:/temp/Display/Display.arduinobeta.mbed.envie_m7.elf...
done.
GDB unhandled notify: cmd-param-changed: {"param":"pagination","value":"off"}
GDB unhandled notify: cmd-param-changed: {"param":"target-charset","value":"ASCII"}
Remote debugging using COM4

If I type show configuration it says:
Please start a debug session to evaluate - but a debug session is running.

---

Another session where it just disconnects after starting:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from c:/temp/Display/Display.arduinobeta.mbed.envie_m7.elf...
done.
GDB unhandled notify: cmd-param-changed: {"param":"pagination","value":"off"}
GDB unhandled notify: cmd-param-changed: {"param":"target-charset","value":"ASCII"}
Remote debugging using COM4
setup () at c:\temp\Display/Display.ino:214
214 {
Will reset on next continue.
Note: automatically using hardware breakpoints for read-only addresses.
Remote connection closed
---

So, any help appreciated.

Thanks,
John W.
![debug](https://user-images.githubusercontent.com/2308903/87482683-c961c800-c5e6-11ea-9e19-2cd93ca13785.jpg)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the ThreadDebug setup in the Display.ino sketch around line 214 and reproduce both debug-console outcomes over COM4. Compare the session that remains unresponsive with the one that reports “Remote connection closed”; the issue is done when the cause is identified and the debug session reliably starts or the required limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, c
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.