Skip to main content
Associate III
October 8, 2024
Solved

IWDG1 bit is not set in RCC status register

  • October 8, 2024
  • 1 reply
  • 1351 views

Hello

     We are using STM32MP157A processor in our custom board. 

     Now we are implemented IWDG1 in Cortex A7 processor. The IWDG1 bit is not going to set after reset the processor with Watchdog timeout.

we checked in following registers

• RCC BOOTROM reset status clear register (RCC_BR_RSTSCLRR),
• RCC MCU reset status clear register (RCC_MC_RSTSCLRR),
• RCC MPU reset status clear register (RCC_MP_RSTSCLRR) and
• RCC MPU reset status set register (RCC_MP_RSTSSETR).

    Getting same value in these registers while power on reset and IWDG1 reset.

May be what was the issue, any one help me in this regards.

regards

srikanth

Best answer by PatrickF

Hi,

please refer to STPMIC1 datasheet mask_reset settings.

PatrickF_0-1730101553827.png

 

bit = 1 mean the NRST activation will not have action on this supply (i.e. no power cycle)

PatrickF_1-1730101590828.png

 

Regards.

1 reply

PatrickF
Technical Moderator
October 10, 2024

Hi,

you don't give much information on the setup.

If you use STPMIC1, when NRST toggling is detected (i.e. Watchdog or SW reset request), there is a complete power cycle done (unless SW program STPMIC1 at run time to behave differently).

So, in that case, you will see a POR reset reason.

In our starter package SW, we reprogram STPMIC in OpTEE to avoid VDD power cycle, thus allowing to get correct reset reason in the registers (if reset does not occur during boot, before OpTEE is started).

 

Regards.

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
Srikanth1Author
Associate III
October 26, 2024

Thank you for reply.

   <In our starter package SW, we reprogram STPMIC in OpTEE to avoid VDD power cycle>

     I am also using STPMIC1, how can I program these bits in my STPMIC1 can you help in these regards

   

 

PatrickF
PatrickFBest answer
Technical Moderator
October 28, 2024

Hi,

please refer to STPMIC1 datasheet mask_reset settings.

PatrickF_0-1730101553827.png

 

bit = 1 mean the NRST activation will not have action on this supply (i.e. no power cycle)

PatrickF_1-1730101590828.png

 

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here