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:SpcDetect 如何使用硬件调试观察点来检测堆栈指针损坏?

Guru**** 1981085 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1227284/iec60730swpackages-how-spcdetect-to-use-hardware-debug-watchpoint-to-detect-stack-pointer-corruption

部件号:IEC60730SWPACKAGES

尊敬的专家:

我的客户 使用 STL_SPC_DETECT_setUpSpcDetect 检测堆栈指针损坏、因此我们需要了解 原理。  

为什么下面的地址可以设置硬件监视点?

//分析观察点寄存器定义
#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

如何设置硬件观察点? 是否有介绍的文件?  

Br

吉姆

x 出现错误。请重试或与管理员联系。