我正尝试从 SafeTI 库启动时运行以下测试:
bool runSafeTiPsconTests() {
bool slRet = false;
SL_SelfTest_Result failInfoPscon = ST_FAIL; /* PSCON Failure information. */
/* Run PSCON self test. */ //! triggers some sort of failure
slRet = SL_SelfTest_PSCON(PSCON_SELF_TEST, true, &failInfoPscon);
if ( (slRet != true) || (failInfoPscon != ST_PASS) ) {
return false;
}
/* Stop PBIST Execution. */
slRet = SL_SelfTest_PBIST_StopExec();
if (slRet != true) {
return false;
}
//Run other tests here...
/* All tests passed. */
return true;
} // All tests pass, jumps back to __c_int00 here?
当我单步执行测试时、该 测试通过、但是、一旦测试函数完成、它会以某种方式触发一个复位回_c_int00启动例程。 我已 通过注释掉函数中的其他测试来确认触发此行为的是 PSCON_self_test。 我对核心寄存器和文档进行了一些挖掘、但无法找到发生这种情况的任何原因。 欢迎您提出任何想法!
