Closed maksimdrachov closed 3 years ago
@maksimdrachov Thread awareness support was only merge relatively recently in openocd (http://openocd.zylin.com/#/c/4988/). Can you check you're using a version that embed this patch ?
Hmm you're right
Upgraded openocd to the latest commit:
I've removed the previous install to make sure there was no chance of the older version being used. Used the following commands:
brew uninstall openocd
brew install openocd --HEAD
Serial output seems to be working as expected:
However the same issue remains:
Any other suggestions? Should I take this to openocd? Are there any tools you could recommend that work with STM32 and Zephyr?
@maksimdrachov Ok, thanks for having had a try. I'll have a check on my side as well. As an alternative, you should be able to use pyocd. Also, you could use Segger, but please note that it currently dos not work for some targets, so I'd not advise it right now.
@maksimdrachov One additional piece of info: In the video you mention, pycocd is the debugger in use.
For openocd, one additional config can be required (to be added in
# Enable Zephyr thread awareness.
$_TARGETNAME configure -rtos Zephyr
But I've not been able to test yet.
Ok, I'll try to test 👍
It works! Big thanks!
The proposed (working) solution can be seen in the screenshot below:
ok, great. We need need to set this by default. I'll raise an issue for that.
@maksimdrachov I'm closing current issue. Don't hesitate to reopen if required
Describe the bug
In this video (50:30) it is shown how to debug a reel-board using gdb.
To Reproduce The following commands are issued:
Output looks fine
If I interrupt, it looks like this, seemingly no threads detected by gdb?
Expected behavior However I'm expecting something like this (as shown in the video)
I've checked my Konfig, but the problem remains.
Impact I can't really start developing with Zephyr.
Environment (please complete the following information):