title: STM32 WWDG interrupt firing when not configured
body: <p>I have an application that I am porting from the Keil IDE to build with the GNU toolchain due to license issues. I have successfully be able to set up, build, flash and run the application on the device.</p>
  
  <p>The application on the GNU side is for some reason is getting stuck in the weak linked IRQ handler for the WWDG which is an infinite loop. The application does not enable the WWDG, and it is disabled at reset by default. I have also verified that the configuration registers are at their default startup values.</p>
  
  <p>The only difference, other than compilers, are the linker and startup files. However, both the startup files, and linker files used by both toolchains are defaults generated by STM. </p>
  
  <p>Any idea what may be causing this? I'm about at my wits end here.  </p>
  
  <p>Using the stm32f103XX, let me know if any other information would be helpful.</p>
  
  <p>EDIT:
  Using the comments below I was able to ascertain that it is, in fact, the HardFault_Handler that is being triggered.
  I have included the backtrace output below if that may be of help</p>
  
  <p>GDB BT:</p>
  
  <p>0 HardFault_Handler ()</p>
  
  <p>1 (signal handler called)</p>
  
  <p>2 0x720a3de in ?? ()</p>
  
  <p>3 0x80005534 in foo ()</p>
  
  <p>Backtrace stopped: previous frame identical to this frame (corrupt stack?)</p>
  
  <p>2 things stand out to me, though im no gdb expert. 1) foo is not a function, it is a const array of chars and 2) 0x0720a3de is not a valid memory address the flash address range starts at 0x08000000</p>