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

Add support for ARC SMP targets #23

Open
abrodkin opened this issue Feb 17, 2020 · 1 comment
Open

Add support for ARC SMP targets #23

abrodkin opened this issue Feb 17, 2020 · 1 comment

Comments

@abrodkin
Copy link
Collaborator

OpenOCD might be used to work nicely with SMP targets, see http://openocd.org/doc/html/Config-File-Guidelines.html#definecputargetsworkinginsmp.

We may just define SMP system in OpenOCD configuration:

target smp $_TARGETNAME1 $_TARGETNAME2 

And then reset & resume commands will be sent to all cores in the SMP.
Which means with proper openocd.cfg generic OpenOCD runner could be used in Zephyr for running SMP-aware applications on SMP HW.

The problem is this SMP-related functionality requires architecture-specific changes and so far it has not been implemented for ARC.

Just as a reference to how it all started for ARM Cortex-A: https://repo.or.cz/openocd.git/blobdiff/b778b36f29b74d6d571df85f984ae684672ea162..5578935eff66ed6db4a8f6b6957ab671dd36732b:/src/target/cortex_a.c

But there're some more changes after :)

@EvgeniiDidin
Copy link
Collaborator

Pull request, which solves this issue:
#25

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

No branches or pull requests

2 participants