Open mhanuel26 opened 5 years ago
The problem seems to be the if clause
if (!(CoreDebug->DEMCR & CoreDebug_DEMCR_TRCENA_Msk)) {
For some reason it returns false, such as if it was been enable.
I have this in F730 and seems to work as expected: `void DWT_Init(void) {
DWT->LAR = 0xC5ACCE55;
CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
DWT->CYCCNT = 0;
DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk;
}`
Thanks for pointing this out!
I'd suggest to make explicit initialization on STM32F7 without condition. And as it turned out to work ok, i'd rather remake that if
condition some day, when i get F7 on hands to experiment.
Thanks again for sharing your experience!
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,