Question
CoreDebug->DEMCR default value
Hi,
MCU - STM32H7
I have noticed that the CoreDebug_DEMCR_TRCENA bit in the DEMCR register is set by default if a debugger is connected. But, I need to enable it explicitly (as shown below) if the debugger is not connected.
CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
I want to use cyccnt and this is the reason why I want to enable this. Can I please ask why do we need to enable this explicitly if the debugger is not connected ? Also, Is the debugger enabling CoreDebug_DEMCR_TRCENA bit implicitly ?
