Skip to main content
Cvadi.1
Associate II
February 10, 2020
Question

WWDG_IRQHandler not waked up

  • February 10, 2020
  • 8 replies
  • 1396 views

hi, why WWDG_IRQHandler is not waking up, it configured even though not waking up.

please guide me and show me asample program for WWDG.

thanks

This topic has been closed for replies.

8 replies

waclawek.jan
Super User
February 10, 2020

Is WWDG clock running in the state you want to wake up from?

Read out and check the related registers in WWDG and NVIC.

JW

Cvadi.1
Cvadi.1Author
Associate II
February 10, 2020

hi, thanks for your reply,

WWDG is enabled, it counts , i do refresh it using timer7, with command "HAL_WWDG_Refresh(&hwwdg);"; using this command it function fine;

but,

if i use the same command("HAL_WWDG_Refresh(&hwwdg);") in "void WWDG_IRQHandler(void)" function, the WWDG counter is not refreshed, and void WWDG_IRQHandler(void) function is not at all waked up at any time then it gets resets the micro controller.

thanks

waclawek.jan
Super User
February 10, 2020

Is WWDG_IRQHandler() inserted properly into the vector table? (Check in disasm).

Is it enabled? (check in NVIC registers).

Btw. refreshing WWDG in its interrupt defeats it purpose.

JW

Cvadi.1
Cvadi.1Author
Associate II
February 10, 2020

hi, i am new to STM32CubeIDE and CubeMX, i used Cube MX for generating code configuration, if possible could please you come in team viewer.

thanks

waclawek.jan
Super User
February 10, 2020

I don't provide consulting.

I don't use Cube/CubeMX.

JW

Cvadi.1
Cvadi.1Author
Associate II
February 10, 2020

are you a member? or an employee of STM?

waclawek.jan
Super User
February 10, 2020

No I'm not ST employee.

Note, that this is primarily a user-driven forum with only casual ST presence.

JW

Cvadi.1
Cvadi.1Author
Associate II
February 10, 2020

ok thanks JW,

thanks for your reply.

one more question,

i am using STM32CubeIDE, STM32CubeMX;

while receiving data in UART2, the data is stored in a defined array with fixed memory location(ex: myData[10]), in any case if 11 number of data is received , then the array is circulated to store the data, i need to stop circulating the data, could please guide me how to stop circulating the data ?

thanks