程序刚开始是好的,过一段时间后调试时就卡在sys_selftest.c文件中void memoryInit(uint32 ram)函数的
/* Wait until Memory Hardware Initialization complete */
while((systemREG1->MSTCGSTAT & 0x00000100U) != 0x00000100U)
{
}/* Wait */
部分,是不能读取目标存储器数据,怎么会出现这种情况呢?
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.
程序刚开始是好的,过一段时间后调试时就卡在sys_selftest.c文件中void memoryInit(uint32 ram)函数的
/* Wait until Memory Hardware Initialization complete */
while((systemREG1->MSTCGSTAT & 0x00000100U) != 0x00000100U)
{
}/* Wait */
部分,是不能读取目标存储器数据,怎么会出现这种情况呢?
出现这种状况后重新建立一个新的简单的工程仍然会卡在那里,不知道这个问题该怎么解决呢?附件是出现问题时的工程文件,还有要问的就是之前正常的时候也是rti的中断是正常的,het的没有出现,参考Renton给的http://www.deyisupport.com/question_answer/microcontrollers/hercules/f/70/t/18292.aspx这个链接中要设置hetram的控制寄存器,但是没有在手册中找到相关寄存器的设置……能麻烦给解决下么……
这个问题的出现应该也是因为HAL自动生成的代码加入了一些安全认证的代码,就像下面这个链接中Renton的回复那样,遇见不可预知的错误,进入死循环了,而这个死循环是while()http://www.deyisupport.com/question_answer/microcontrollers/hercules/f/70/t/20895.aspx