Skip to main content
42Bastian Schick
Associate III
January 20, 2022
Solved

What are the conditions to set/modify/trigger IWDG2? My application runs in secure mode and I do write to 0x5a002000 the trigger value of 0xaaaa, but I still get a IWDG2 reset. No matter what I do I seem not to be able to change the settings.

  • January 20, 2022
  • 3 replies
  • 2045 views

..

This topic has been closed for replies.
Best answer by 42Bastian Schick

Solved.

I had to enable the APB4 clock (0x50000200 = 0x8000).

3 replies

42Bastian Schick
42Bastian SchickAuthorBest answer
Associate III
January 20, 2022

Solved.

I had to enable the APB4 clock (0x50000200 = 0x8000).

Kevin HUBER
Technical Moderator
January 20, 2022

Hello @42Bastian Schick​ ,

Yes, you found it. Thanks for coming back to post the solution :).

As explained page 584 in the Reference Manual RM0436 rev5.0: https://www.st.com/resource/en/reference_manual/DM00327659-.pdf

The APB4 clock is needed to access to the IWDGx registers of IWDG2.

Regards,

Kévin

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
42Bastian Schick
Associate III
January 20, 2022

The confusion came because the registers could be read. Most often, if the clock is not enabled, you cannot even read the registers.

Cheers

42Bastian