STM32 WWDG interrupt firing when not configured

前端 未结 8 1661
执念已碎
执念已碎 2021-02-12 14:51

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

8条回答
  •  孤独总比滥情好
    2021-02-12 15:35

    The core problem is that the Default Handler is called instead of another irq handler. I doubt that our situations are the same but here is my solution:

    I was working on a c++ project, the same happened to me. This was the first time I made a project from scratch & with CMSIS. After some unsuccessful attempts I went through a generated project when I noticed that in the stm32xxxx_it.h the IRQ handler function prototypes are guarded by these:

    extern "C"
    {
        void TIM7_IRQHandler(void);
    }
    

    With these guards the linker could find my own interrupt handler functions.

提交回复
热议问题