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.

IEC60730SWPACKAGES: How SpcDetect to use hardware debug watchpoint to detect stack pointer corruption?

Part Number: IEC60730SWPACKAGES

Hi experts,

My customer is using STL_SPC_DETECT_setUpSpcDetect to detect stack pointer corruption, and we need to know the principle. 

Why the address below can set the hardware watch point?

// Analysis Watchpoint Register definitions
#define STL_SPC_DETECT_WPR1_MASK_LOW (volatile uint16_t *)(uint16_t)0x0828U
#define STL_SPC_DETECT_WPR1_MASK_HIGH (volatile uint16_t *)(uint16_t)0x0829U
#define STL_SPC_DETECT_WPR1_REF_LOW (volatile uint16_t *)(uint16_t)0x082AU
#define STL_SPC_DETECT_WPR1_REF_HIGH (volatile uint16_t *)(uint16_t)0x082BU
#define STL_SPC_DETECT_WPR1_CTRL (volatile uint16_t *)(uint16_t)0x082EU
#define STL_SPC_DETECT_WPR1_ID (volatile uint16_t *)(uint16_t)0x082FU

How to set up the hardware watch point? Is there any document to introduce it? 

BR

Jim