Black-Magic-Probe-Book icon indicating copy to clipboard operation
Black-Magic-Probe-Book copied to clipboard

setting CoreDebug->DEMCR

Open reimerp opened this issue 6 months ago • 1 comments

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

reimerp avatar Apr 30 '25 06:04 reimerp