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

subsys/ipc/openamp sample on QEMU not working when debugging #33635

Closed
MartinSchoenstedt opened this issue Mar 23, 2021 · 3 comments
Closed

subsys/ipc/openamp sample on QEMU not working when debugging #33635

MartinSchoenstedt opened this issue Mar 23, 2021 · 3 comments
Assignees
Labels
area: IPC Inter-Process Communication bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@MartinSchoenstedt
Copy link

Describe the bug
Trying to understand the openamp sample I wanted to debug it via QEMU. However, the sample stops working when adding the -S option

To Reproduce
Steps to reproduce the behavior:

  1. go to zephyrproject/zephyr/samples/subsys/ipc/openamp
  2. build with west build -p -b mps2_an521 . (adding -t run does not work here)
  3. run the sample with qemu-system-arm as build/build.ninja describes in line 882
  4. Sample works without problems
  5. repeat command but add options -s -S to the qemu-system-arm call for debugging
  6. start gdb-server and continue
  7. Remote core does not start

Environment:

  • OS: Linux 64-bit
  • Zephyr version: 2.5.99
@MartinSchoenstedt MartinSchoenstedt added the bug The issue is a bug, or the PR is fixing a bug label Mar 23, 2021
@carlescufi carlescufi added area: IPC Inter-Process Communication priority: low Low impact/importance bug labels Mar 23, 2021
@galak
Copy link
Collaborator

galak commented Mar 23, 2021

@MartinSchoenstedt I'm guessing this isn't a bug, but more how qemu works w/multicore.

@MartinSchoenstedt
Copy link
Author

MartinSchoenstedt commented Mar 24, 2021

yes, that could be the case. I was wondering if the problem has occured to anyone else before or if I am the first trying to debug multicore qemu applications.
Reporting the problem on qemu bugtracker as this is likely to be the root cause. https://bugs.launchpad.net/qemu/+bug/1921092

@galak
Copy link
Collaborator

galak commented Mar 24, 2021

@MartinSchoenstedt

Take a look at:

https://lists.nongnu.org/archive/html/qemu-devel/2020-01/msg07035.html

If I use the gdb commands listed here things seem to work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: IPC Inter-Process Communication 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

4 participants