Perform the following procedure to enable periodic STM export:
- Configure, but do not enable, all the counters required for export per Section 8.1.6.3.1, Counter Enable.
- Enable the STM configuration capability by setting the SCTM_CTSTMCNTL[0] ENBL bit to 1.
- Disable periodic export by writing 0000 0000h to the SCTM_CTSTMINTVL register.
- (Optional) Change the hardware master ID by writing the new value to the SCTM_CTSTMMSTID[6:0] MASTID bit.
- Tag which counters are selected for export by setting the corresponding bits.
- Set the total number of counters tagged for export through a write to the SCTM_CTSTMCNTL[11:6] NUMXPORT bit.
- (Optional) To include overflow information in the CSM message, set the SCTM_CTSTMCNTL[1] SENDOVR bit to 1.
- (Optional) To send a counter configuration message (CCM), set the SCTM_CTSTMCNTL[4] CCMXPORT bit to 1.
- This feature is only available if the SCTM_CTSTMCNTL[3]CCMAVAIL bit reads as 1.
- Test for completion of the CCM export through the SCTM_CTSTMCNTL[5] XPORTACT bit.
- Enable periodic export by writing the interval value to the SCTM_CTSTMINTVL register.
- Enable the counters per Section 8.1.6.3.1, Counter Enable.