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

Better OpenOCD config #485

Open
maxgerhardt opened this issue Aug 5, 2022 · 1 comment
Open

Better OpenOCD config #485

maxgerhardt opened this issue Aug 5, 2022 · 1 comment

Comments

@maxgerhardt
Copy link

maxgerhardt commented Aug 5, 2022

The OpenOCD config creates all the CPU cores in accordance to their AP number

# Create each CPU targets
target create $_CHIPNAME.cpu3 cortex_m -dap $_CHIPNAME.dap -ap-num 3

However, this makes it incompatible with targets using HLA_SWD like the ST-Link, who can only access the first AP (=0). Other config files have a check for this

https://github.com/openocd-org/openocd/blob/573a39b36cf133bb7403b12337301a5616112f1a/tcl/target/stm32mp13x.cfg#L6-L47

And I think it should be included here too.

@SPRESENSE
Copy link
Collaborator

Hi @maxgerhardt san
Thanks for the advice. If you submit a pull request, we would like to merge it.
Thanks

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