Skip to content
This repository was archived by the owner on Oct 18, 2025. It is now read-only.
This repository was archived by the owner on Oct 18, 2025. It is now read-only.

setting CoreDebug->DEMCR #47

@reimerp

Description

@reimerp

Hi, first thank you for the enlightening book and resources.
While implemeting I found a little type in the examples given on pages 79 and 118:
CoreDebug->DEMCR = CoreDebug_DEMCR_TRCENA_Msk;
should be replaced with
CoreDebug->DEMCR =| CoreDebug_DEMCR_TRCENA_Msk;

else tracing will fail if running in debugger which already sets DEMCR to != 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions