STM32L476 -flto causes WWDT interrupt to trigger even though WWDT is disabled.
Hi! I have a project in which I tried to enable LTO for release builds. Issue is that the code hangs before entering the main loop. Upon investigation, I found that an interrupt is triggered: the code gets stuck in the default implementation for the WWDT_IRQHandler function:
Default_Handler:
Infinite_Loop:
b Infinite_LoopI do not enable WWDT in CubeMX, and it is indeed disabled in my hal conf header file. Now I'm suspecting that I might be enabling LTO incorrectly. I pass -flto to both the C compiler and the linker as arguments. Am I missing something?
