Tool/software: Code Composer Studio
Hi
I would like to measure clock cycles between any two breakpoints in the code. For this, I am using the ARM DWT registers to read the clock count. I am trying to perform the following R/W operations using Javascript:
// enable the use DWT
*DEMCR = *DEMCR | 0x01000000;
// Reset cycle counter
*DWT_CYCCNT = 0;
// enable cycle counter
*DWT_CONTROL = *DWT_CONTROL | 1 ;
I am unable to write to the DEMCR register using writeRegister, writeWord and writeData APIs. Please help.