Tag: stm32f7

测量皮质m7上的时钟周期计数

我一直在测量皮层m4上的时钟周期计数,现在想在皮层m7上进行测量。 我使用的主板是STM32F746ZG。 对于m4,一切顺利: volatile unsigned int *DWT_CYCCNT; volatile unsigned int *DWT_CONTROL; volatile unsigned int *SCB_DEMCR; void reset_cnt(){ DWT_CYCCNT = (volatile unsigned int *)0xE0001004; //address of the register DWT_CONTROL = (volatile unsigned int *)0xE0001000; //address of the register SCB_DEMCR = (volatile unsigned int *)0xE000EDFC; //address of the register *SCB_DEMCR = *SCB_DEMCR | 0x01000000; *DWT_CYCCNT = 0; […]