On 25.10.2017 16:05, JC wrote:
I'm running Ubuntu 16.04 LTS in a Virtualbox VM. I'm using EclipseOne obvious thing you need to do, which nevertheless is easy to
overlook, is setting Kconfig option
It disables compiler optimizations and adds debug symbols to the bin
file. I'm only reminding it since you didn't mention it in your post.
Not setting this option would be a typical cause for 2. and 4. Though in
case of 4. the behavior shouldn't differ between application and system
code. Not enabling CONFIG_DEBUG may also influence 3. Though the changes
shouldn't be dramatic, callstack should still make sense.
To have thread aware debugging you need to use OpenOCD from the latest
Zephyr SDK version. The stock OpenOCD comes without Zephyr extensions. I
actually have not tried it out yet and am not sure how well it works. I
think you will also need to set
Maybe someone else knows more.
Let us know how it worked and especially if you were successful enabling
thread aware debugging.