Hi,
I cannot make it work under STM32F769, perhaps the unlocking sequence.
void DWT_Init(void)
{
if (!(CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk)) {
CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
DWT->LAR = 0xC5ACCE55;
DWT->CYCCNT = 0;
DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk;
}
}
I have place the init after SystemClock_Config such
SystemClock_Config();
DWT_Init();
What am I missing?
Thanks,
Hi,
I cannot make it work under STM32F769, perhaps the unlocking sequence.
I have place the init after SystemClock_Config such
What am I missing?
Thanks,