Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

west debug: openocd: console garbled with --tui option #81405

Open
erwango opened this issue Nov 14, 2024 · 0 comments
Open

west debug: openocd: console garbled with --tui option #81405

erwango opened this issue Nov 14, 2024 · 0 comments
Labels
area: West West utility bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@erwango
Copy link
Member

erwango commented Nov 14, 2024

Describe the bug

gdb option --tui to split screen and display source along with gdb console is available as an openocd runner option.
Though, when used with west debug, it provides a garbled output:

Screenshot from 2024-11-14 14-10-33

When using --tui gdb arg outside of west debug, it works as expected
Screenshot from 2024-11-14 14-07-55
with following commands run in 2 different windows:

$ ~/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/openocd -s ~/zephyrproject/zephyr/boards/st/nucleo_l152re/support -s ~/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts -f ~/zephyrproject/zephyr/boards/st/nucleo_l152re/support/openocd.cfg -c 'tcl_port 6333' -c 'telnet_port 4444' -c 'gdb_port 3333' '-c init' '-c targets' '-c halt'
$ ~/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb-py -ex 'target extended-remote :3333' build/nucleo_l152re/zephyr/zephyr.elf -tui -ex load

To Reproduce
Steps to reproduce the behavior:

  1. west build -b nucleo_f401re sample/hello_word
  2. west debug -d build --tui
  3. See error

Expected behavior
--tui should help debug experience, not garble it.

Impact
west debug not usable with --tui option

Logs and console output

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows): Ubuntu
  • Toolchain (e.g Zephyr SDK, ...): zephyr-sdk-0.17.0
  • Commit SHA or Version used: v4.0.0.rc3

Additional context
I suspect a timing issue between gdb server and client command Doesn't seem to be the case.

@erwango erwango added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug area: West West utility labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

1 participant