This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: DSS: Unable to access DEMCR register

Other Parts Discussed in Thread: MSP432E401Y

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.