Skip to content

Conversation

@asyba
Copy link
Contributor

@asyba asyba commented Jan 1, 2026

Update debugging documentation.

Update debugging documentation.

Signed-off-by: Federico Bechini <federico.bechini@gmail.com>
Comment on lines +50 to +52
```bash
arm-none-eabi-gdb build/src/fw/tintin_fw.elf core.elf
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./waf debug?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./waf debug?

never use it before, but this required to be connected to the pebble by a board or something right?
My debug instructions are specific for remote, for people that doesn't have a way to connect directly to the board, so they can only get logs by IP or get a coredump.

I can update to say that is intended for remote debugging mostly.

def find_gdb_executable():
"""Find an available arm-none-eabi-gdb with Python support."""
candidates = ["arm-none-eabi-gdb-py", "arm-none-eabi-gdb-py3"]
candidates = ["arm-none-eabi-gdb-py", "arm-none-eabi-gdb-py3", "arm-none-eabi-gdb"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls make these changes into a separate commit (explaining why this change)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to add to the docs another useful command.
tools/analyze_coredump.py build/src/fw/tintin_fw.elf core.elf -o report.txt
but I got an error, probably because I have only installed with brew arm-none-eabi-gdb

(.venv)  PebbleOS % tools/analyze_coredump.py build/src/fw/tintin_fw.elf core1.elf -o report.txt

Traceback (most recent call last):
  File "/tools/analyze_coredump.py", line 240, in <module>
    main()
    ~~~~^^
  File "/tools/analyze_coredump.py", line 233, in main
    analyzer = CoredumpAnalyzer(elf_file, coredump_file, args.output)
  File "/Users/federicobechini/Documents/Droplet/GIT/PebbleOS/tools/analyze_coredump.py", line 38, in __init__
    raise RuntimeError(
    ...<2 lines>...
    )
RuntimeError: Could not find arm-none-eabi-gdb-py or arm-none-eabi-gdb-py3. Please ensure one of these is installed and in PATH.
(.venv) PebbleOS % tools/analyze_coredump.py build/src/fw/tintin_fw.elf core1.elf -o report.txt

Analyzing coredump: core1.elf
Using ELF file: build/src/fw/tintin_fw.elf
Output will be saved to: report.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants