Black-Magic-Probe-Book
                                
                                
                                
                                    Black-Magic-Probe-Book copied to clipboard
                            
                            
                            
                        setting CoreDebug->DEMCR
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