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.

IWRL6432: Reset cause value

Part Number: IWRL6432

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,