Tool/software:
Hi,
In SDK5.4.0.1 motion detection demo, added below code to understand the reset reason, when power on the rstsn is 6, when issue cmd "sensorWarmRst" the value is still 6.
rstrsn = SOC_getRstReason();
CLI_write ("rstrsn %d\r\n", rstrsn);
Two questions:
1 power on, why it is 6 while not 1? what is the difference?
2 issue cmd sensorWarmRst, why it is 6 while not 2 or 5 which means warm reset?
/**
* @brief Value specifying Power ON Reset
*/
SOC_RESET_REASON_PORZ = 0x01U,
/**
* @brief Value specifying Warm Reset
*/
SOC_RESET_REASON_WARM,
/**
* @brief Value specifying Deep Sleep Reset
*/
SOC_RESET_REASON_DEEPSLEEP,
/**
* @brief Value specifying Soft Reset
*/
SOC_RESET_REASON_SOFT,
/**
* @brief Value specifying STC or Warm Reset
*/
SOC_RESET_REASON_STC_WARM,
/**
* @brief Value specifying STC or Power ON Reset
*/
SOC_RESET_REASON_STC_PORZ,