How to Retrieve Last Reset Cause for Realtek Ameba RTL8735BM in Ameba-Pro2-SDK?

Hello everyone,

I’m working on implementing the logic to retrieve, set, and clear the last reset reason for the Realtek Ameba RTL8735BM chip within the Ameba-Pro2-SDK.

I’ve gone through the application note and datasheet but couldn’t locate any details about the register that holds the reset cause. For context, LPC controllers offer this information through the “System Reset Status Register,” and I’m hoping for something similar from this controller.

Specifically, I need to determine whether the last reset was triggered by a power-on, brownout, watchdog, external pin, or system soft reset.

Has anyone encountered this or can provide any insights or guidance on how to retrieve this information?

Thanks in advance!

Hi @Shrikant_Sasane, to better understand your requirements, could you clarify the specific purpose of retrieving, setting, and clearing the last reset reason? Are you looking to enhance debugging capabilities or implement fail-safe recovery mechanisms? Thank you.

Hi @KaiFai_Y
The primary goal is to improve the debugging and troubleshooting process.
By tracking the reason behind the last system reset, we can more easily identify the root cause of issues such as unexpected crashes, failures, or performance degradation.
Also, the system could take specific recovery actions depending on the reset reason.

Hi @Shrikant_Sasane, thank you for reaching out with your inquiry regarding the retrieval of the last reset cause for the Realtek Ameba RTL8735BM in the Ameba-Pro2-SDK. However, after reviewing the SDK, we confirm that there is no available API to retrieve the last reset cause for the RTL8735BM. Thanks.