Get reset cause BUTTON (RESET_N)

Hello,

I am currently working on the GM02SP, and trying to get the reset cause which I can see in the console UART (BUTTON/EXT).

Is there any other way to get the reset cause from the SDK ? I want to do different things depending on it.

Thanks.

Hi Léa,

I looked a little more about getting the reset cause. AT+BMOD? command gives the reason of the last reset. You can send this AT command from the PXL application.

From Monarch-Monarch2-SoftwareUpgradeProcedure-Rev.9.pdf:

Note that both power up and reset_n pin activation will provide POWERON reason.

Best regards,

Benoit.

Hi,

The reset cause seen in the UART2 console log is not available from the PXL SDK. However, from the PXL SDK there is a way to know if the boot comes from an initial boot (power up or SW reset), or a wake up from deep sleep. If it helps, we can provide a code example. You may also refer to Monarch2-PXL-SDK-UsersGuide-Rev.6.pdf, chapter 3.4. PXL Source Files, available at Sequans Communications . If this does not help, would you share in more details the problem you are trying to solve ? We might try to find the solution from another angle.

Best regards,

Benoit.