__WFI() does not work as it should in STM32CubeMX
I'm programming in C on STM32F103RBT6. I'm using STM32CubeIDE. For some strange reason, the __WFI function, instead of waiting for an interrupt to occur, automatically calls itself and doesn't wait for an interrupt. I don't know what's going on. I've set breakpoints in all the functions in the interrupt file stm32f1xx_it.c, but still none of them have called. I don't know what's going on. The main.c file looks like this #include "main.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "states.h" #include "creators.h" #inc
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.