Skip to content

Better OpenOCD config #485

Description

@maxgerhardt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions