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 |= 0x...
Posted on March 17, 2016 at 16:27
Thanks for the reply,
A functional code is as follows:
1.
DWT->LAR = 0xC5ACCE55;
// Unlock code
2.
3.
DWT->CTRL |= 0x01;
4.
DWT->CYCCNT = 0;
5.
6.
// Do something...
7.
8.
uint32_t Count = DW...