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.

CC2538: DWT CYCCNT Registers

Part Number: CC2538

Hello Team,

My Customer is using an SVD file from the CC2538 chip and would like to use the DWT CYCCNT register, but we can't find information about this in the datasheet or the SVD file. Is it supported?

Thanks in advance.

Regards,

-Renan

  • Hello Renan,

    Please clarify what your customer is attempting to accomplish as I am unfamiliar with the terminology you are using as applied to the CC2538.

    Regards,
    Ryan

  • Hello Ryan,

    My customer provided this information:

    "Im trying to write some HAL in Rust for the CC2538 by using the SVD files that I generated from the tixml files provided for this chip. Currently I'm in the process of doing some timing measurements and I would like to use the CYCCNT register value to accomplish this. I would therefore like to access this register using the HAL generated from the SVD file, but because the DWT registers are not discussed in the documentation nor visible in the tixml files, the HAL is not generted for these registers. But I know they are available (because when using a SEGGERS J-Link debugger the value of the CYCCNT register is visible), but just not documented in the datasheet or tixml files."

    Regards,

    Renan

  • Hi Renan,

    Thanks for providing the additional information.  I had assumed as much that the customer was using Rust but it was good to have confirmation.  If the customer refers to the Memory Model (Section 4.1) of the CC2538 User's Guide they will find the DWT at 0xE000 1000, and for technical details regarding instruction sets they can use the Cortex-M3 Technical Reference as this is the processor core used in this SoC.

    Regards,
    Ryan