Skip to content

Prevent usage of the same coreid on the same debug module. #1293

@MarekVCodasip

Description

@MarekVCodasip

Recently, Tomas Vanek found a bug when investigating a different issue (https://review.openocd.org/c/openocd/+/9126) that when -codeid is not specified for a core, multicore targets will each have the same one on one debug module, leading to errors.

This should be fixed.

This config can be used to recreate it:

target create c0 riscv -chain-position riscv.cpu -rtos hwthread
target create c1 riscv -chain-position riscv.cpu -rtos hwthread
target smp c0 c1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions