Question
STM32F746ZGTx DWT Issue
Posted on March 17, 2016 at 13:22
Hi,
I'm trying to get the value of the CYCCNT in a STM32F746 Nucleo Board. Code is as follows:
// Configuring DEMCR & CTRL registers
CoreDebug->DEMCR &= ~0x01000000;
CoreDebug->DEMCR |= 0x01000000;
DWT->CTRL &= ~0x00000001;
DWT->CTRL |= 0x00000001;
DWT->CYCCNT = 0;
//Do something...
uint32_t Count = DWT->CYCCNT;
Registers were not written, and Count is always zero.
Has anyone faced a similar issue?
I employ the same code for Cortex M4 STM32F4xx MCUs, and it works perfect!
Thanks,
#stm32f746zgtx-dwt-issue